Izmjenjena struktura, dodan backand

This commit is contained in:
GotPPay
2017-10-16 11:19:46 +02:00
parent 1ec88afacb
commit 048e32c4aa
37153 changed files with 2975854 additions and 1 deletions

23
web/node_modules/detect-node/Readme.md generated vendored Normal file
View File

@@ -0,0 +1,23 @@
Usage:
```js
var isNode = require('detect-node');
if (isNode) {
console.log("Running under Node.JS");
} else {
alert("Hello from browser (or whatever not-a-node env)");
}
```
The check is performed as:
```js
module.exports = false;
// Only Node.JS has a process variable that is of [[Class]] process
try {
module.exports = Object.prototype.toString.call(global.process) === '[object process]'
} catch(e) {}
```
Thanks to Ingvar Stepanyan for the initial idea. This check is both **the most reliable I could find** and it does not use `process` env directly, which would cause browserify to include it into the build.

6
web/node_modules/detect-node/index.js generated vendored Normal file
View File

@@ -0,0 +1,6 @@
module.exports = false;
// Only Node.JS has a process variable that is of [[Class]] process
try {
module.exports = Object.prototype.toString.call(global.process) === '[object process]'
} catch(e) {}

50
web/node_modules/detect-node/package.json generated vendored Normal file
View File

@@ -0,0 +1,50 @@
{
"_from": "detect-node@^2.0.3",
"_id": "detect-node@2.0.3",
"_inBundle": false,
"_integrity": "sha1-ogM8CcyOFY03dI+951B4Mr1s4Sc=",
"_location": "/detect-node",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "detect-node@^2.0.3",
"name": "detect-node",
"escapedName": "detect-node",
"rawSpec": "^2.0.3",
"saveSpec": null,
"fetchSpec": "^2.0.3"
},
"_requiredBy": [
"/spdy-transport"
],
"_resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.0.3.tgz",
"_shasum": "a2033c09cc8e158d37748fbde7507832bd6ce127",
"_spec": "detect-node@^2.0.3",
"_where": "/home/bilal/Saburly/slucajna-televizija/node_modules/spdy-transport",
"author": {
"name": "Ilya Kantor"
},
"bugs": {
"url": "https://github.com/iliakan/detect-node/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "Detect Node.JS (as opposite to browser environment) (reliable)",
"homepage": "https://github.com/iliakan/detect-node",
"keywords": [
"detect",
"node"
],
"license": "ISC",
"main": "index.js",
"name": "detect-node",
"repository": {
"type": "git",
"url": "git+https://github.com/iliakan/detect-node.git"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"version": "2.0.3"
}