forked from enviPath/enviPy
Current Dev State
This commit is contained in:
21
static/js/ketcher2/node_modules/globo/index.js
generated
vendored
Normal file
21
static/js/ketcher2/node_modules/globo/index.js
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
'use strict'
|
||||
|
||||
var ternary = require('ternary')
|
||||
var isDefined = require('is-defined')
|
||||
var access = require('accessory')
|
||||
|
||||
module.exports = function globalize (property) {
|
||||
return parenthesize(ternary(
|
||||
isDefined('window'),
|
||||
access('window', property),
|
||||
ternary(
|
||||
isDefined('global'),
|
||||
access('global', property),
|
||||
null
|
||||
)
|
||||
))
|
||||
}
|
||||
|
||||
function parenthesize (string) {
|
||||
return '(' + string + ')'
|
||||
}
|
||||
21
static/js/ketcher2/node_modules/globo/license
generated
vendored
Normal file
21
static/js/ketcher2/node_modules/globo/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.
|
||||
71
static/js/ketcher2/node_modules/globo/package.json
generated
vendored
Normal file
71
static/js/ketcher2/node_modules/globo/package.json
generated
vendored
Normal file
@ -0,0 +1,71 @@
|
||||
{
|
||||
"_from": "globo@~1.1.0",
|
||||
"_id": "globo@1.1.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-DSYJiVXepCLrIAGxBImLChAcqvM=",
|
||||
"_location": "/globo",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "globo@~1.1.0",
|
||||
"name": "globo",
|
||||
"escapedName": "globo",
|
||||
"rawSpec": "~1.1.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "~1.1.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/exposify"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/globo/-/globo-1.1.0.tgz",
|
||||
"_shasum": "0d26098955dea422eb2001b104898b0a101caaf3",
|
||||
"_spec": "globo@~1.1.0",
|
||||
"_where": "/home/manfred/enviPath/ketcher2/ketcher/node_modules/exposify",
|
||||
"author": {
|
||||
"name": "Ben Drucker",
|
||||
"email": "bvdrucker@gmail.com",
|
||||
"url": "bendrucker.me"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/bendrucker/globo/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"accessory": "~1.1.0",
|
||||
"is-defined": "~1.0.0",
|
||||
"ternary": "~1.0.0"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Turn identifiers into global lookups that work in Node and the browser",
|
||||
"devDependencies": {
|
||||
"standard": "^4.0.0",
|
||||
"tape": "^4.0.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"readme.md"
|
||||
],
|
||||
"homepage": "https://github.com/bendrucker/globo#readme",
|
||||
"keywords": [
|
||||
"global",
|
||||
"id",
|
||||
"module",
|
||||
"browser",
|
||||
"node"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"name": "globo",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/bendrucker/globo.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "standard && tape test.js"
|
||||
},
|
||||
"version": "1.1.0"
|
||||
}
|
||||
39
static/js/ketcher2/node_modules/globo/readme.md
generated
vendored
Normal file
39
static/js/ketcher2/node_modules/globo/readme.md
generated
vendored
Normal file
@ -0,0 +1,39 @@
|
||||
# globo [](https://travis-ci.org/bendrucker/globo)
|
||||
|
||||
> Turn module ids into global lookups that work in Node and the browser
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save globo
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var globalize = require('globo');
|
||||
|
||||
globo('_');
|
||||
//=> (typeof window !== "undefined" ? window._ : typeof global !== "undefined" ? global._ : null)
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
#### `globo(id)` -> `string`
|
||||
|
||||
##### id
|
||||
|
||||
*Required*
|
||||
Type: `string`
|
||||
|
||||
A module id.
|
||||
|
||||
|
||||

|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Ben Drucker](http://bendrucker.me)
|
||||
Reference in New Issue
Block a user