diff options
author | Minteck <nekostarfan@gmail.com> | 2021-08-24 14:41:48 +0200 |
---|---|---|
committer | Minteck <nekostarfan@gmail.com> | 2021-08-24 14:41:48 +0200 |
commit | d25e11bee6ca5ca523884da132d18e1400e077b9 (patch) | |
tree | 8af39fde19f7ed640a60fb397c7edd647dff1c4c /node_modules/has-symbol-support-x | |
download | kartik-iridium-d25e11bee6ca5ca523884da132d18e1400e077b9.tar.gz kartik-iridium-d25e11bee6ca5ca523884da132d18e1400e077b9.tar.bz2 kartik-iridium-d25e11bee6ca5ca523884da132d18e1400e077b9.zip |
Initial commit
Diffstat (limited to 'node_modules/has-symbol-support-x')
17 files changed, 464 insertions, 0 deletions
diff --git a/node_modules/has-symbol-support-x/.editorconfig b/node_modules/has-symbol-support-x/.editorconfig new file mode 100644 index 0000000..ec24598 --- /dev/null +++ b/node_modules/has-symbol-support-x/.editorconfig @@ -0,0 +1,26 @@ +# This file is for unifying the coding style for different editors and IDEs +# editorconfig.org + +# top-most EditorConfig file +root = true + +# every file +[*] +charset = utf-8 +end_of_line = lf +indent_size = 2 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true + +# 4 space indentation +[*.py] +indent_style = space +indent_size = 4 + +# Tab indentation (no size specified) +[Makefile] +indent_style = tab + +[*.md] +trim_trailing_whitespace = false diff --git a/node_modules/has-symbol-support-x/.eslintignore b/node_modules/has-symbol-support-x/.eslintignore new file mode 100644 index 0000000..cdecab1 --- /dev/null +++ b/node_modules/has-symbol-support-x/.eslintignore @@ -0,0 +1 @@ +lib/* diff --git a/node_modules/has-symbol-support-x/.eslintrc.json b/node_modules/has-symbol-support-x/.eslintrc.json new file mode 100644 index 0000000..7d4d3dd --- /dev/null +++ b/node_modules/has-symbol-support-x/.eslintrc.json @@ -0,0 +1,6 @@ +{ + "root": true, + "extends": [ + "@xotic750/eslint-config-standard-x" + ] +} diff --git a/node_modules/has-symbol-support-x/.nvmrc b/node_modules/has-symbol-support-x/.nvmrc new file mode 100644 index 0000000..b009dfb --- /dev/null +++ b/node_modules/has-symbol-support-x/.nvmrc @@ -0,0 +1 @@ +lts/* diff --git a/node_modules/has-symbol-support-x/.travis.yml b/node_modules/has-symbol-support-x/.travis.yml new file mode 100644 index 0000000..a45e260 --- /dev/null +++ b/node_modules/has-symbol-support-x/.travis.yml @@ -0,0 +1,111 @@ +sudo: false +language: node_js +branches: + only: + - master + - /^greenkeeper/.*$/ +notifications: + email: false +node_js: + - "9.6" + - "9.5" + - "9.4" + - "9.3" + - "9.2" + - "9.1" + - "9.0" + - "8.9" + - "8.8" + - "8.7" + - "8.6" + - "8.5" + - "8.4" + - "8.3" + - "8.2" + - "8.1" + - "8.0" + - "7.10" + - "7.9" + - "7.8" + - "7.7" + - "7.6" + - "7.5" + - "7.4" + - "7.3" + - "7.2" + - "7.1" + - "7.0" + - "6.11" + - "6.10" + - "6.9" + - "6.8" + - "6.7" + - "6.6" + - "6.5" + - "6.4" + - "6.3" + - "6.2" + - "6.1" + - "6.0" + - "5.12" + - "5.11" + - "5.10" + - "5.9" + - "5.8" + - "5.7" + - "5.6" + - "5.5" + - "5.4" + - "5.3" + - "5.2" + - "5.1" + - "5.0" + - "4.8" + - "4.7" + - "4.6" + - "4.5" + - "4.4" + - "4.3" + - "4.2" + - "4.1" + - "4.0" + - "iojs-v3.3" + - "iojs-v3.2" + - "iojs-v3.1" + - "iojs-v3.0" + - "iojs-v2.5" + - "iojs-v2.4" + - "iojs-v2.3" + - "iojs-v2.2" + - "iojs-v2.1" + - "iojs-v2.0" + - "iojs-v1.8" + - "iojs-v1.7" + - "iojs-v1.6" + - "iojs-v1.5" + - "iojs-v1.4" + - "iojs-v1.3" + - "iojs-v1.2" + - "iojs-v1.1" + - "iojs-v1.0" + - "0.12" + - "0.11" + - "0.10" + - "0.9" + - "0.8" + - "0.6" + - "0.4" +before_install: + - 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ]; then npm install -g npm@1.3 ; elif [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then case "$(npm --version)" in 1.*) npm install -g npm@1.4.28 ;; 2.*) npm install -g npm@2 ; esac ; fi' + - 'if [ "${TRAVIS_NODE_VERSION}" != "0.6" ] && [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then if [ "${TRAVIS_NODE_VERSION%${TRAVIS_NODE_VERSION#[0-9]}}" = "0" ] || [ "${TRAVIS_NODE_VERSION:0:4}" = "iojs" ]; then npm install -g npm@4.5; elif [[ "${TRAVIS_NODE_VERSION%${TRAVIS_NODE_VERSION#[0-9]}}" =~ ^[4-5]+$ ]]; then npm install -g npm@5.3; else npm install -g npm; fi; fi' +install: + - 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ]; then nvm install 0.8 && npm install -g npm@1.3 && npm install -g npm@1.4.28 && npm install -g npm@2 && npm install && nvm use --delete-prefix "${TRAVIS_NODE_VERSION}"; else npm install; fi;' +script: + - 'npm test' +matrix: + fast_finish: true + allow_failures: + - node_js: "0.11" + - node_js: "0.9" + - node_js: "0.6" + - node_js: "0.4" diff --git a/node_modules/has-symbol-support-x/.uglifyjsrc.json b/node_modules/has-symbol-support-x/.uglifyjsrc.json new file mode 100644 index 0000000..2d26277 --- /dev/null +++ b/node_modules/has-symbol-support-x/.uglifyjsrc.json @@ -0,0 +1,17 @@ +{ + "warnings": false, + "parse": {}, + "compress": { + "keep_fnames": true + }, + "mangle": false, + "output": { + "ascii_only": true, + "beautify": false, + "comments": "some" + }, + "sourceMap": {}, + "nameCache": null, + "toplevel": false, + "ie8": true +} diff --git a/node_modules/has-symbol-support-x/LICENSE b/node_modules/has-symbol-support-x/LICENSE new file mode 100644 index 0000000..0d2b266 --- /dev/null +++ b/node_modules/has-symbol-support-x/LICENSE @@ -0,0 +1,21 @@ +https://opensource.org/licenses/MIT + +Copyright (c) 2015-present Graham Fairweather. + +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. diff --git a/node_modules/has-symbol-support-x/README.md b/node_modules/has-symbol-support-x/README.md new file mode 100644 index 0000000..f9503ae --- /dev/null +++ b/node_modules/has-symbol-support-x/README.md @@ -0,0 +1,36 @@ +<a href="https://travis-ci.org/Xotic750/has-symbol-support-x" + title="Travis status"> +<img + src="https://travis-ci.org/Xotic750/has-symbol-support-x.svg?branch=master" + alt="Travis status" height="18"/> +</a> +<a href="https://david-dm.org/Xotic750/has-symbol-support-x" + title="Dependency status"> +<img src="https://david-dm.org/Xotic750/has-symbol-support-x.svg" + alt="Dependency status" height="18"/> +</a> +<a href="https://david-dm.org/Xotic750/has-symbol-support-x#info=devDependencies" + title="devDependency status"> +<img src="https://david-dm.org/Xotic750/has-symbol-support-x/dev-status.svg" + alt="devDependency status" height="18"/> +</a> +<a href="https://badge.fury.io/js/has-symbol-support-x" title="npm version"> +<img src="https://badge.fury.io/js/has-symbol-support-x.svg" + alt="npm version" height="18"/> +</a> +<a name="module_has-symbol-support-x"></a> + +## has-symbol-support-x +Tests if ES6 Symbol is supported. + +**Version**: 1.4.2 +**Author**: Xotic750 <Xotic750@gmail.com> +**License**: [MIT](<https://opensource.org/licenses/MIT>) +**Copyright**: Xotic750 +<a name="exp_module_has-symbol-support-x--module.exports"></a> + +### `module.exports` : <code>boolean</code> ⏏ +Indicates if `Symbol`exists and creates the correct type. +`true`, if it exists and creates the correct type, otherwise `false`. + +**Kind**: Exported member diff --git a/node_modules/has-symbol-support-x/badges.html b/node_modules/has-symbol-support-x/badges.html new file mode 100644 index 0000000..a3b8352 --- /dev/null +++ b/node_modules/has-symbol-support-x/badges.html @@ -0,0 +1,20 @@ +<a href="https://travis-ci.org/Xotic750/@{PACKAGE-NAME}" + title="Travis status"> +<img + src="https://travis-ci.org/Xotic750/@{PACKAGE-NAME}.svg?branch=master" + alt="Travis status" height="18"/> +</a> +<a href="https://david-dm.org/Xotic750/@{PACKAGE-NAME}" + title="Dependency status"> +<img src="https://david-dm.org/Xotic750/@{PACKAGE-NAME}.svg" + alt="Dependency status" height="18"/> +</a> +<a href="https://david-dm.org/Xotic750/@{PACKAGE-NAME}#info=devDependencies" + title="devDependency status"> +<img src="https://david-dm.org/Xotic750/@{PACKAGE-NAME}/dev-status.svg" + alt="devDependency status" height="18"/> +</a> +<a href="https://badge.fury.io/js/@{PACKAGE-NAME}" title="npm version"> +<img src="https://badge.fury.io/js/@{PACKAGE-NAME}.svg" + alt="npm version" height="18"/> +</a> diff --git a/node_modules/has-symbol-support-x/index.js b/node_modules/has-symbol-support-x/index.js new file mode 100644 index 0000000..20a9581 --- /dev/null +++ b/node_modules/has-symbol-support-x/index.js @@ -0,0 +1,18 @@ +/** + * @file Tests if ES6 Symbol is supported. + * @version 1.4.2 + * @author Xotic750 <Xotic750@gmail.com> + * @copyright Xotic750 + * @license {@link <https://opensource.org/licenses/MIT> MIT} + * @module has-symbol-support-x + */ + +'use strict'; + +/** + * Indicates if `Symbol`exists and creates the correct type. + * `true`, if it exists and creates the correct type, otherwise `false`. + * + * @type boolean + */ +module.exports = typeof Symbol === 'function' && typeof Symbol('') === 'symbol'; diff --git a/node_modules/has-symbol-support-x/lib/has-symbol-support-x.js b/node_modules/has-symbol-support-x/lib/has-symbol-support-x.js new file mode 100644 index 0000000..62a6b14 --- /dev/null +++ b/node_modules/has-symbol-support-x/lib/has-symbol-support-x.js @@ -0,0 +1,22 @@ +(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.returnExports = f()}})(function(){var define,module,exports;return (function(){function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}return e})()({1:[function(_dereq_,module,exports){ +/** + * @file Tests if ES6 Symbol is supported. + * @version 1.4.2 + * @author Xotic750 <Xotic750@gmail.com> + * @copyright Xotic750 + * @license {@link <https://opensource.org/licenses/MIT> MIT} + * @module has-symbol-support-x + */ + +'use strict'; + +/** + * Indicates if `Symbol`exists and creates the correct type. + * `true`, if it exists and creates the correct type, otherwise `false`. + * + * @type boolean + */ +module.exports = typeof Symbol === 'function' && typeof Symbol('') === 'symbol'; + +},{}]},{},[1])(1) +});
\ No newline at end of file diff --git a/node_modules/has-symbol-support-x/lib/has-symbol-support-x.min.js b/node_modules/has-symbol-support-x/lib/has-symbol-support-x.min.js new file mode 100644 index 0000000..035d36f --- /dev/null +++ b/node_modules/has-symbol-support-x/lib/has-symbol-support-x.min.js @@ -0,0 +1,10 @@ +!function(f){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=f();else if("function"==typeof define&&define.amd)define([],f);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).returnExports=f()}}(function(){return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a="function"==typeof require&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n||e)},l,l.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o<r.length;o++)s(r[o]);return s}({1:[function(_dereq_,module,exports){ +/** + * @file Tests if ES6 Symbol is supported. + * @version 1.4.2 + * @author Xotic750 <Xotic750@gmail.com> + * @copyright Xotic750 + * @license {@link <https://opensource.org/licenses/MIT> MIT} + * @module has-symbol-support-x + */ +"use strict";module.exports="function"==typeof Symbol&&"symbol"==typeof Symbol("")},{}]},{},[1])(1)});
\ No newline at end of file diff --git a/node_modules/has-symbol-support-x/lib/has-symbol-support-x.min.js.map b/node_modules/has-symbol-support-x/lib/has-symbol-support-x.min.js.map new file mode 100644 index 0000000..b700755 --- /dev/null +++ b/node_modules/has-symbol-support-x/lib/has-symbol-support-x.min.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["lib/has-symbol-support-x.js"],"names":["f","exports","module","define","amd","window","global","self","this","returnExports","e","t","n","r","s","o","u","a","require","i","Error","code","l","call","length","1","_dereq_","Symbol"],"mappings":"CAAA,SAAUA,GAAG,GAAoB,iBAAVC,SAAoC,oBAATC,OAAsBA,OAAOD,QAAQD,SAAS,GAAmB,mBAATG,QAAqBA,OAAOC,IAAKD,UAAUH,OAAO,EAA0B,oBAATK,OAAwBA,OAA+B,oBAATC,OAAwBA,OAA6B,oBAAPC,KAAsBA,KAAYC,MAAOC,cAAgBT,KAAlU,CAAyU,WAAqC,OAAmB,SAASU,EAAEC,EAAEC,EAAEC,GAAG,SAASC,EAAEC,EAAEC,GAAG,IAAIJ,EAAEG,GAAG,CAAC,IAAIJ,EAAEI,GAAG,CAAC,IAAIE,EAAkB,mBAATC,SAAqBA,QAAQ,IAAIF,GAAGC,EAAE,OAAOA,EAAEF,GAAE,GAAI,GAAGI,EAAE,OAAOA,EAAEJ,GAAE,GAAI,IAAIf,EAAE,IAAIoB,MAAM,uBAAuBL,EAAE,KAAK,MAAMf,EAAEqB,KAAK,mBAAmBrB,EAAE,IAAIsB,EAAEV,EAAEG,IAAId,YAAYU,EAAEI,GAAG,GAAGQ,KAAKD,EAAErB,QAAQ,SAASS,GAAG,IAAIE,EAAED,EAAEI,GAAG,GAAGL,GAAG,OAAOI,EAAEF,GAAIF,IAAIY,EAAEA,EAAErB,QAAQS,EAAEC,EAAEC,EAAEC,GAAG,OAAOD,EAAEG,GAAGd,QAAkD,IAA1C,IAAIkB,EAAkB,mBAATD,SAAqBA,QAAgBH,EAAE,EAAEA,EAAEF,EAAEW,OAAOT,IAAID,EAAED,EAAEE,IAAI,OAAOD,EAAlc,EAAkdW,GAAG,SAASC,QAAQxB,OAAOD;;;;;;;;;AAUl2B,aAQAC,OAAOD,QAA4B,mBAAX0B,QAA+C,iBAAfA,OAAO,cAEpD,GApB0W,CAoBtW"}
\ No newline at end of file diff --git a/node_modules/has-symbol-support-x/package.json b/node_modules/has-symbol-support-x/package.json new file mode 100644 index 0000000..5e251df --- /dev/null +++ b/node_modules/has-symbol-support-x/package.json @@ -0,0 +1,86 @@ +{ + "name": "has-symbol-support-x", + "version": "1.4.2", + "description": "Tests if ES6 Symbol is supported.", + "homepage": "https://github.com/Xotic750/has-symbol-support-x", + "author": { + "name": "Graham Fairweather", + "email": "xotic750@gmail.com" + }, + "copyright": "Copyright (c) 2015-present", + "keywords": [ + "ES6", + "hasSymbolSupport", + "module", + "javascript", + "nodejs", + "browser" + ], + "main": "index.js", + "engines": { + "node": "*" + }, + "license": "MIT", + "repository": { + "type": "git", + "url": "https://github.com/Xotic750/has-symbol-support-x.git" + }, + "bugs": { + "url": "https://github.com/Xotic750/has-symbol-support-x/issues" + }, + "dependencies": {}, + "devDependencies": { + "@xotic750/eslint-config-standard-x": "^3.1.1", + "ajv": "^6.1.1", + "browserify": "^16.1.0", + "browserify-derequire": "^0.9.4", + "cross-env": "^5.1.3", + "es5-shim": "^4.5.10", + "es6-shim": "^0.35.3", + "es7-shim": "^6.0.0", + "eslint": "^4.18.1", + "eslint-plugin-compat": "^2.2.0", + "eslint-plugin-css-modules": "^2.7.5", + "eslint-plugin-eslint-comments": "^2.0.2", + "eslint-plugin-jsdoc": "^3.5.0", + "eslint-plugin-json": "^1.2.0", + "eslint-plugin-no-use-extend-native": "^0.3.12", + "husky": "^0.13.4", + "jasmine-node": "^1.14.5", + "jsdoc-to-markdown": "^4.0.1", + "json3": "^3.3.2", + "make-jasmine-spec-runner-html": "^1.3.0", + "ncp": "^2.0.0", + "nodemon": "^1.15.1", + "nsp": "^3.2.1", + "parallelshell": "^3.0.2", + "replace-x": "^1.5.0", + "rimraf": "^2.6.2", + "serve": "^6.4.11", + "uglify-js": "^3.3.12" + }, + "scripts": { + "clean": "rimraf README.md lib/*", + "clean:jasmine": "rimraf tests/index.html tests/run.js", + "clean:all": "npm run clean:jasmine && npm run clean", + "build": "npm run clean && npm run lint && npm run browserify && npm run uglify && npm run docs && npm test && npm run security", + "build:jasmine": "npm run clean:jasmine && make-jasmine-spec-runner-html", + "build:setver": "replace-x \" @version .*\" \" @version $(node -p -e \"require('./package.json').version\")\" index.js", + "build:name": "replace-x \" @module .*\" \" @module $(node -p -e \"require('./package.json').name\")\" index.js", + "build:description": "replace-x \" @file .*\" \" @file $(node -p -e \"require('./package.json').description\")\" index.js", + "build:replace": "npm run build:setver && npm run build:name && npm run build:description", + "production": "npm run clean:all && npm run build:jasmine && npm run build:replace && npm run build", + "start": "parallelshell \"serve\" \"nodemon --watch index.js --exec 'npm run build'\"", + "docs:name": "replace-x \"@{PACKAGE-NAME}\" \"$(node -p -e \"require('./package.json').name\")\" README.md", + "docs:badges": "ncp badges.html README.md && npm run docs:name", + "docs": "npm run docs:badges && jsdoc2md --name-format --example-lang js index.js >> README.md", + "lint": "eslint *.js tests/spec/*.js", + "lint-fix": "npm run lint -- --fix", + "security": "nsp check", + "test": "jasmine-node --matchall tests/spec/", + "browserify": "browserify -p browserify-derequire -e index.js -o lib/has-symbol-support-x.js -u 'crypto' -s returnExports", + "uglify": "uglifyjs lib/has-symbol-support-x.js -o lib/has-symbol-support-x.min.js --config-file .uglifyjsrc.json", + "precommit": "npm run production", + "prepush": "npm run production" + } +} diff --git a/node_modules/has-symbol-support-x/tests/index.html b/node_modules/has-symbol-support-x/tests/index.html new file mode 100644 index 0000000..9c027d4 --- /dev/null +++ b/node_modules/has-symbol-support-x/tests/index.html @@ -0,0 +1,34 @@ +<!DOCTYPE HTML> +<html> +<head> + <meta charset="utf-8" /> + <title>Jasmine Spec Runner: has-symbol-support-x</title> + + <link rel="icon" href="http://jasmine.github.io/images/jasmine.ico" sizes="16x16"> + <link rel="icon" href="http://jasmine.github.io//images/jasmine_32x32.ico" sizes="32x32"> + + <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/jasmine/1.3.1/jasmine.min.css"> + <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/es5-shim/4.5.10/es5-shim.min.js"></script> + <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/es5-shim/4.5.10/es5-sham.min.js"></script> + <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/json3/3.3.2/json3.min.js"></script> + <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/es6-shim/0.35.3/es6-shim.js"></script> + <script type="text/javascript" src="https://wzrd.in/standalone/es7-shim@latest"></script> + <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jasmine/1.3.1/jasmine.min.js"></script> + <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jasmine/1.3.1/jasmine-html.min.js"></script> + + <!-- include helper files here... --> + + <!-- include source files here... --> + <script src="../lib/has-symbol-support-x.min.js"></script> + + <!-- include spec files here... --> + <script src="spec/test.js"></script> + + <!-- run the tests --> + <script src="./run.js"></script> + +</head> + +<body> +</body> +</html> diff --git a/node_modules/has-symbol-support-x/tests/run.js b/node_modules/has-symbol-support-x/tests/run.js new file mode 100644 index 0000000..76efd69 --- /dev/null +++ b/node_modules/has-symbol-support-x/tests/run.js @@ -0,0 +1,25 @@ +/* global window, jasmine */ +/* eslint strict: 0 */ +(function () { + var jasmineEnv = jasmine.getEnv(); + jasmineEnv.updateInterval = 1000; + + var trivialReporter = new jasmine.TrivialReporter(); + + jasmineEnv.addReporter(trivialReporter); + + jasmineEnv.specFilter = function (spec) { + return trivialReporter.specFilter(spec); + }; + + var currentWindowOnload = window.onload; + var execJasmine = function () { + jasmineEnv.execute(); + }; + window.onload = function () { + if (currentWindowOnload) { + currentWindowOnload(); + } + execJasmine(); + }; +}()); diff --git a/node_modules/has-symbol-support-x/tests/spec/test.js b/node_modules/has-symbol-support-x/tests/spec/test.js new file mode 100644 index 0000000..0868973 --- /dev/null +++ b/node_modules/has-symbol-support-x/tests/spec/test.js @@ -0,0 +1,29 @@ +'use strict'; + +var hasSymbolSupport; +if (typeof module === 'object' && module.exports) { + require('es5-shim'); + require('es5-shim/es5-sham'); + if (typeof JSON === 'undefined') { + JSON = {}; + } + require('json3').runInContext(null, JSON); + require('es6-shim'); + var es7 = require('es7-shim'); + Object.keys(es7).forEach(function (key) { + var obj = es7[key]; + if (typeof obj.shim === 'function') { + obj.shim(); + } + }); + hasSymbolSupport = require('../../index.js'); +} else { + hasSymbolSupport = returnExports; +} + +describe('Basic tests', function () { + it('results should match', function () { + var expected = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol'; + expect(hasSymbolSupport).toBe(expected); + }); +}); |