forked from enviPath/enviPy
Current Dev State
This commit is contained in:
5
static/js/ketcher2/node_modules/is-defined/index.js
generated
vendored
Normal file
5
static/js/ketcher2/node_modules/is-defined/index.js
generated
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
'use strict'
|
||||
|
||||
module.exports = function isDefined (identifier) {
|
||||
return 'typeof ' + identifier + ' !== "undefined"'
|
||||
}
|
||||
21
static/js/ketcher2/node_modules/is-defined/license
generated
vendored
Normal file
21
static/js/ketcher2/node_modules/is-defined/license
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) Ben Drucker <bvdrucker@gmail.com> (bendrucker.me)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
60
static/js/ketcher2/node_modules/is-defined/package.json
generated
vendored
Normal file
60
static/js/ketcher2/node_modules/is-defined/package.json
generated
vendored
Normal file
@ -0,0 +1,60 @@
|
||||
{
|
||||
"_from": "is-defined@~1.0.0",
|
||||
"_id": "is-defined@1.0.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-HwfKZ9Vx9ZTEsUQVpF9774j5K/U=",
|
||||
"_location": "/is-defined",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "is-defined@~1.0.0",
|
||||
"name": "is-defined",
|
||||
"escapedName": "is-defined",
|
||||
"rawSpec": "~1.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "~1.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/globo"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/is-defined/-/is-defined-1.0.0.tgz",
|
||||
"_shasum": "1f07ca67d571f594c4b14415a45f7bef88f92bf5",
|
||||
"_spec": "is-defined@~1.0.0",
|
||||
"_where": "/home/manfred/enviPath/ketcher2/ketcher/node_modules/globo",
|
||||
"author": {
|
||||
"name": "Ben Drucker",
|
||||
"email": "bvdrucker@gmail.com",
|
||||
"url": "bendrucker.me"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/bendrucker/is-defined/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"description": "Check if an identifier is defined",
|
||||
"devDependencies": {
|
||||
"standard": "^4.0.0",
|
||||
"tape": "^4.0.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"homepage": "https://github.com/bendrucker/is-defined#readme",
|
||||
"keywords": [
|
||||
"defined",
|
||||
"code",
|
||||
"js"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"name": "is-defined",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/bendrucker/is-defined.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "standard && tape test.js"
|
||||
},
|
||||
"version": "1.0.0"
|
||||
}
|
||||
36
static/js/ketcher2/node_modules/is-defined/readme.md
generated
vendored
Normal file
36
static/js/ketcher2/node_modules/is-defined/readme.md
generated
vendored
Normal file
@ -0,0 +1,36 @@
|
||||
# is-defined [](https://travis-ci.org/bendrucker/is-defined)
|
||||
|
||||
> Check if an identifier is defined
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save is-defined
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var isDefined = require('is-defined')
|
||||
|
||||
isDefined('window')
|
||||
//=> typeof window !== 'undefined'
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
#### `isDefined(identifier)` -> `string`
|
||||
|
||||
##### identifier
|
||||
|
||||
*Required*
|
||||
Type: `string`
|
||||
|
||||
A JavaScript identifier.
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Ben Drucker](http://bendrucker.me)
|
||||
Reference in New Issue
Block a user