Initial commit
This commit is contained in:
19
node_modules/symbol-observable/es/index.js
generated
vendored
Normal file
19
node_modules/symbol-observable/es/index.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
/* global window */
|
||||
import ponyfill from './ponyfill.js';
|
||||
|
||||
var root;
|
||||
|
||||
if (typeof self !== 'undefined') {
|
||||
root = self;
|
||||
} else if (typeof window !== 'undefined') {
|
||||
root = window;
|
||||
} else if (typeof global !== 'undefined') {
|
||||
root = global;
|
||||
} else if (typeof module !== 'undefined') {
|
||||
root = module;
|
||||
} else {
|
||||
root = Function('return this')();
|
||||
}
|
||||
|
||||
var result = ponyfill(root);
|
||||
export default result;
|
||||
17
node_modules/symbol-observable/es/ponyfill.js
generated
vendored
Normal file
17
node_modules/symbol-observable/es/ponyfill.js
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
export default function symbolObservablePonyfill(root) {
|
||||
var result;
|
||||
var Symbol = root.Symbol;
|
||||
|
||||
if (typeof Symbol === 'function') {
|
||||
if (Symbol.observable) {
|
||||
result = Symbol.observable;
|
||||
} else {
|
||||
result = Symbol('observable');
|
||||
Symbol.observable = result;
|
||||
}
|
||||
} else {
|
||||
result = '@@observable';
|
||||
}
|
||||
|
||||
return result;
|
||||
};
|
||||
1
node_modules/symbol-observable/index.js
generated
vendored
Normal file
1
node_modules/symbol-observable/index.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
module.exports = require('./lib/index');
|
||||
29
node_modules/symbol-observable/lib/index.js
generated
vendored
Normal file
29
node_modules/symbol-observable/lib/index.js
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
|
||||
var _ponyfill = require('./ponyfill.js');
|
||||
|
||||
var _ponyfill2 = _interopRequireDefault(_ponyfill);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
|
||||
|
||||
var root; /* global window */
|
||||
|
||||
|
||||
if (typeof self !== 'undefined') {
|
||||
root = self;
|
||||
} else if (typeof window !== 'undefined') {
|
||||
root = window;
|
||||
} else if (typeof global !== 'undefined') {
|
||||
root = global;
|
||||
} else if (typeof module !== 'undefined') {
|
||||
root = module;
|
||||
} else {
|
||||
root = Function('return this')();
|
||||
}
|
||||
|
||||
var result = (0, _ponyfill2['default'])(root);
|
||||
exports['default'] = result;
|
||||
23
node_modules/symbol-observable/lib/ponyfill.js
generated
vendored
Normal file
23
node_modules/symbol-observable/lib/ponyfill.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports['default'] = symbolObservablePonyfill;
|
||||
function symbolObservablePonyfill(root) {
|
||||
var result;
|
||||
var _Symbol = root.Symbol;
|
||||
|
||||
if (typeof _Symbol === 'function') {
|
||||
if (_Symbol.observable) {
|
||||
result = _Symbol.observable;
|
||||
} else {
|
||||
result = _Symbol('observable');
|
||||
_Symbol.observable = result;
|
||||
}
|
||||
} else {
|
||||
result = '@@observable';
|
||||
}
|
||||
|
||||
return result;
|
||||
};
|
||||
22
node_modules/symbol-observable/license
generated
vendored
Normal file
22
node_modules/symbol-observable/license
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
||||
Copyright (c) Ben Lesh <ben@benlesh.com>
|
||||
|
||||
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.
|
||||
36
node_modules/symbol-observable/package.json
generated
vendored
Normal file
36
node_modules/symbol-observable/package.json
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"name": "symbol-observable",
|
||||
"version": "1.2.0",
|
||||
"description": "Symbol.observable ponyfill",
|
||||
"license": "MIT",
|
||||
"repository": "blesh/symbol-observable",
|
||||
"author": {
|
||||
"name": "Ben Lesh",
|
||||
"email": "ben@benlesh.com"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js",
|
||||
"ponyfill.js",
|
||||
"index.d.ts",
|
||||
"es/index.js",
|
||||
"es/ponyfill/js",
|
||||
"lib/index.js",
|
||||
"lib/ponyfill.js"
|
||||
],
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
"jsnext:main": "es/index.js",
|
||||
"typings": "index.d.ts",
|
||||
"devDependencies": {
|
||||
"babel-cli": "^6.9.0",
|
||||
"babel-preset-es2015": "^6.9.0",
|
||||
"babel-preset-es3": "^1.0.0",
|
||||
"chai": "^3.5.0",
|
||||
"check-es3-syntax-cli": "^0.1.0",
|
||||
"mocha": "^2.4.5",
|
||||
"typescript": "^2.1.4"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user