This commit is contained in:
你的名字
2025-07-14 10:22:40 +08:00
commit 0483b4b364
1388 changed files with 219353 additions and 0 deletions

9
nodejs/node_modules/is-nan/.eslintrc generated vendored Executable file
View File

@ -0,0 +1,9 @@
{
"root": true,
"extends": "@ljharb",
"rules": {
"no-extra-parens": [2]
}
}

124
nodejs/node_modules/is-nan/.jscs.json generated vendored Executable file
View File

@ -0,0 +1,124 @@
{
"es3": true,
"additionalRules": [],
"requireSemicolons": true,
"disallowMultipleSpaces": true,
"disallowIdentifierNames": [],
"requireCurlyBraces": ["if", "else", "for", "while", "do", "try", "catch"],
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch", "function"],
"disallowSpaceAfterKeywords": [],
"disallowSpaceBeforeComma": true,
"disallowSpaceBeforeSemicolon": true,
"disallowNodeTypes": [
"DebuggerStatement",
"ForInStatement",
"LabeledStatement",
"SwitchCase",
"SwitchStatement",
"WithStatement"
],
"requireObjectKeysOnNewLine": true,
"requireSpacesInAnonymousFunctionExpression": { "beforeOpeningRoundBrace": true, "beforeOpeningCurlyBrace": true },
"requireSpacesInNamedFunctionExpression": { "beforeOpeningCurlyBrace": true },
"disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true },
"requireSpacesInFunctionDeclaration": { "beforeOpeningCurlyBrace": true },
"disallowSpacesInFunctionDeclaration": { "beforeOpeningRoundBrace": true },
"requireSpaceBetweenArguments": true,
"disallowSpacesInsideParentheses": true,
"disallowSpacesInsideArrayBrackets": true,
"disallowQuotedKeysInObjects": "allButReserved",
"disallowSpaceAfterObjectKeys": true,
"requireCommaBeforeLineBreak": true,
"disallowSpaceAfterPrefixUnaryOperators": ["++", "--", "+", "-", "~", "!"],
"requireSpaceAfterPrefixUnaryOperators": [],
"disallowSpaceBeforePostfixUnaryOperators": ["++", "--"],
"requireSpaceBeforePostfixUnaryOperators": [],
"disallowSpaceBeforeBinaryOperators": [],
"requireSpaceBeforeBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
"requireSpaceAfterBinaryOperators": ["+", "-", "/", "*", "=", "==", "===", "!=", "!=="],
"disallowSpaceAfterBinaryOperators": [],
"disallowImplicitTypeConversion": ["binary", "string"],
"disallowKeywords": ["with", "eval"],
"requireKeywordsOnNewLine": [],
"disallowKeywordsOnNewLine": ["else"],
"requireLineFeedAtFileEnd": true,
"disallowTrailingWhitespace": true,
"disallowTrailingComma": true,
"excludeFiles": ["node_modules/**", "vendor/**"],
"disallowMultipleLineStrings": true,
"requireDotNotation": true,
"requireParenthesesAroundIIFE": true,
"validateLineBreaks": "LF",
"validateQuoteMarks": {
"escape": true,
"mark": "'"
},
"disallowOperatorBeforeLineBreak": [],
"requireSpaceBeforeKeywords": [
"do",
"for",
"if",
"else",
"switch",
"case",
"try",
"catch",
"finally",
"while",
"with",
"return"
],
"validateAlignedFunctionParameters": {
"lineBreakAfterOpeningBraces": true,
"lineBreakBeforeClosingBraces": true
},
"requirePaddingNewLinesBeforeExport": true,
"validateNewlineAfterArrayElements": {
"maximum": 1
},
"requirePaddingNewLinesAfterUseStrict": true,
"disallowArrowFunctions": true,
"validateOrderInObjectKeys": "asc-insensitive"
}

15
nodejs/node_modules/is-nan/.npmignore generated vendored Executable file
View File

@ -0,0 +1,15 @@
lib-cov
*.seed
*.log
*.csv
*.dat
*.out
*.pid
*.gz
pids
logs
results
npm-debug.log
node_modules

49
nodejs/node_modules/is-nan/.travis.yml generated vendored Executable file
View File

@ -0,0 +1,49 @@
language: node_js
node_js:
- "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:
- '[ "${TRAVIS_NODE_VERSION}" = "0.6" ] || npm install -g npm@1.4.28 && npm install -g npm'
sudo: false
matrix:
fast_finish: true
allow_failures:
- node_js: "iojs-v2.4"
- node_js: "iojs-v2.3"
- node_js: "iojs-v2.2"
- node_js: "iojs-v2.1"
- node_js: "iojs-v2.0"
- node_js: "iojs-v1.7"
- node_js: "iojs-v1.6"
- node_js: "iojs-v1.5"
- node_js: "iojs-v1.4"
- node_js: "iojs-v1.3"
- node_js: "iojs-v1.2"
- node_js: "iojs-v1.1"
- node_js: "iojs-v1.0"
- node_js: "0.11"
- node_js: "0.9"
- node_js: "0.8"
- node_js: "0.6"
- node_js: "0.4"

27
nodejs/node_modules/is-nan/CHANGELOG.md generated vendored Executable file
View File

@ -0,0 +1,27 @@
1.2.1 / 2015-08-16
=================
* [Docs] Update readme
1.2.0 / 2015-08-16
=================
* [New] Implement the [es-shim API](es-shims/api) interface
* [Dev Deps] update `eslint`, `tape`, `es5-shim`, `@ljharb/eslint-config`
* [Tests] up to `io.js` `v3.0`
* [Docs] Switch from vb.teelaun.ch to versionbadg.es for the npm version badge SVG
* [Security] Add `npm run security`
1.1.0 / 2015-06-24
=================
* Add a "shim" method
* Add `npm run eslint`
* Test latest `node` and `io.js` on `travis-ci`
* Add license and download badges to README
* Update `tape`, `covert`, `jscs`
1.0.1 / 2014-07-05
=================
* Oops, jscs should be a devDependency
1.0.0 / 2014-07-05
=================
* Initial release.

20
nodejs/node_modules/is-nan/LICENSE generated vendored Executable file
View File

@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2014 Jordan Harband
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.

56
nodejs/node_modules/is-nan/README.md generated vendored Executable file
View File

@ -0,0 +1,56 @@
#is-nan <sup>[![Version Badge][2]][1]</sup>
[![Build Status][3]][4]
[![dependency status][5]][6]
[![dev dependency status][7]][8]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]
[![npm badge][11]][1]
[![browser support][9]][10]
ES6-compliant shim for Number.isNaN - the global isNaN returns false positives.
This package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the [spec](http://www.ecma-international.org/ecma-262/6.0/#sec-number.isnan).
## Example
```js
Number.isNaN = require('is-nan');
var assert = require('assert');
assert.notOk(Number.isNaN(undefined));
assert.notOk(Number.isNaN(null));
assert.notOk(Number.isNaN(false));
assert.notOk(Number.isNaN(true));
assert.notOk(Number.isNaN(0));
assert.notOk(Number.isNaN(42));
assert.notOk(Number.isNaN(Infinity));
assert.notOk(Number.isNaN(-Infinity));
assert.notOk(Number.isNaN('foo'));
assert.notOk(Number.isNaN(function () {}));
assert.notOk(Number.isNaN([]));
assert.notOk(Number.isNaN({}));
assert.ok(Number.isNaN(NaN));
```
## Tests
Simply clone the repo, `npm install`, and run `npm test`
[1]: https://npmjs.org/package/is-nan
[2]: http://versionbadg.es/ljharb/is-nan.svg
[3]: https://travis-ci.org/ljharb/is-nan.svg
[4]: https://travis-ci.org/ljharb/is-nan
[5]: https://david-dm.org/ljharb/is-nan.svg
[6]: https://david-dm.org/ljharb/is-nan
[7]: https://david-dm.org/ljharb/is-nan/dev-status.svg
[8]: https://david-dm.org/ljharb/is-nan#info=devDependencies
[9]: https://ci.testling.com/ljharb/is-nan.png
[10]: https://ci.testling.com/ljharb/is-nan
[11]: https://nodei.co/npm/is-nan.png?downloads=true&stars=true
[license-image]: http://img.shields.io/npm/l/is-nan.svg
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/is-nan.svg
[downloads-url]: http://npm-stat.com/charts.html?package=is-nan

7
nodejs/node_modules/is-nan/implementation.js generated vendored Executable file
View File

@ -0,0 +1,7 @@
'use strict';
/* http://www.ecma-international.org/ecma-262/6.0/#sec-number.isnan */
module.exports = function isNaN(value) {
return value !== value;
};

17
nodejs/node_modules/is-nan/index.js generated vendored Executable file
View File

@ -0,0 +1,17 @@
'use strict';
var define = require('define-properties');
var implementation = require('./implementation');
var getPolyfill = require('./polyfill');
var shim = require('./shim');
/* http://www.ecma-international.org/ecma-262/6.0/#sec-number.isnan */
define(implementation, {
getPolyfill: getPolyfill,
implementation: implementation,
shim: shim
});
module.exports = implementation;

104
nodejs/node_modules/is-nan/package.json generated vendored Executable file
View File

@ -0,0 +1,104 @@
{
"_args": [
[
"is-nan@1.2.1",
"/www/wwwroot/Adminx.cc/nodejs"
]
],
"_from": "is-nan@1.2.1",
"_id": "is-nan@1.2.1",
"_inBundle": false,
"_integrity": "sha1-n69ltvttskt/XAYoR16nH5iEAeI=",
"_location": "/is-nan",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "is-nan@1.2.1",
"name": "is-nan",
"escapedName": "is-nan",
"rawSpec": "1.2.1",
"saveSpec": null,
"fetchSpec": "1.2.1"
},
"_requiredBy": [
"/cron-parser"
],
"_resolved": "https://registry.npmjs.org/is-nan/-/is-nan-1.2.1.tgz",
"_spec": "1.2.1",
"_where": "/www/wwwroot/Adminx.cc/nodejs",
"author": {
"name": "Jordan Harband"
},
"bugs": {
"url": "https://github.com/ljharb/is-nan/issues"
},
"dependencies": {
"define-properties": "^1.1.1"
},
"description": "ES6-compliant shim for Number.isNaN - the global isNaN returns false positives.",
"devDependencies": {
"@es-shims/api": "^1.0.0",
"@ljharb/eslint-config": "^1.0.4",
"covert": "^1.1.0",
"es5-shim": "^4.1.10",
"eslint": "^1.1.0",
"jscs": "^2.1.0",
"nsp": "^1.0.3",
"tape": "^4.2.0"
},
"engines": {
"node": ">= 0.4"
},
"homepage": "https://github.com/ljharb/is-nan",
"keywords": [
"is",
"NaN",
"not a number",
"number",
"isNaN",
"ES6",
"shim",
"polyfill",
"es-shim API"
],
"license": "MIT",
"main": "index.js",
"name": "is-nan",
"repository": {
"type": "git",
"url": "git://github.com/ljharb/is-nan.git"
},
"scripts": {
"coverage": "covert test/*.js",
"coverage-quiet": "covert test/*.js --quiet",
"eslint": "eslint *.js test/*.js",
"jscs": "jscs *.js test/*.js",
"lint": "npm run jscs && npm run eslint",
"security": "nsp package",
"test": "npm run lint && es-shim-api && npm run tests-only && npm run security",
"test:function": "node test/index.js",
"test:shimmed": "node test/shimmed.js",
"tests-only": "npm run test:function && npm run test:shimmed"
},
"testling": {
"files": "test.js",
"browsers": [
"iexplore/6.0..latest",
"firefox/3.0..6.0",
"firefox/15.0..latest",
"firefox/nightly",
"chrome/4.0..10.0",
"chrome/20.0..latest",
"chrome/canary",
"opera/10.0..12.0",
"opera/15.0..latest",
"opera/next",
"safari/4.0..latest",
"ipad/6.0..latest",
"iphone/6.0..latest",
"android-browser/4.2"
]
},
"version": "1.2.1"
}

10
nodejs/node_modules/is-nan/polyfill.js generated vendored Executable file
View File

@ -0,0 +1,10 @@
'use strict';
var implementation = require('./implementation');
module.exports = function getPolyfill() {
if (Number.isNaN && Number.isNaN(NaN) && !Number.isNaN('a')) {
return Number.isNaN;
}
return implementation;
};

12
nodejs/node_modules/is-nan/shim.js generated vendored Executable file
View File

@ -0,0 +1,12 @@
'use strict';
var define = require('define-properties');
var getPolyfill = require('./polyfill');
/* http://www.ecma-international.org/ecma-262/6.0/#sec-number.isnan */
module.exports = function shimNumberIsNaN() {
var polyfill = getPolyfill();
define(Number, { isNaN: polyfill }, { isNaN: function () { return Number.isNaN !== polyfill; } });
return polyfill;
};

10
nodejs/node_modules/is-nan/test/index.js generated vendored Executable file
View File

@ -0,0 +1,10 @@
'use strict';
var numberIsNaN = require('../');
var test = require('tape');
test('as a function', function (t) {
require('./tests')(numberIsNaN, t);
t.end();
});

28
nodejs/node_modules/is-nan/test/shimmed.js generated vendored Executable file
View File

@ -0,0 +1,28 @@
'use strict';
require('es5-shim');
var numberIsNaN = require('../');
numberIsNaN.shim();
var test = require('tape');
var defineProperties = require('define-properties');
var isEnumerable = Object.prototype.propertyIsEnumerable;
var functionsHaveNames = function f() {}.name === 'f';
test('shimmed', function (t) {
t.equal(Number.isNaN.length, 1, 'Number.isNaN has a length of 1');
t.test('Function name', { skip: !functionsHaveNames }, function (st) {
st.equal(Number.isNaN.name, 'isNaN', 'Number.isNaN has name "isNaN"');
st.end();
});
t.test('enumerability', { skip: !defineProperties.supportsDescriptors }, function (et) {
et.equal(false, isEnumerable.call(Number, 'isNaN'), 'Number.isNaN is not enumerable');
et.end();
});
require('./tests')(Number.isNaN, t);
t.end();
});

36
nodejs/node_modules/is-nan/test/tests.js generated vendored Executable file
View File

@ -0,0 +1,36 @@
'use strict';
module.exports = function (numberIsNaN, t) {
t.test('not NaN', function (st) {
st.test('primitives', function (sst) {
sst.notOk(numberIsNaN(), 'undefined is not NaN');
sst.notOk(numberIsNaN(null), 'null is not NaN');
sst.notOk(numberIsNaN(false), 'false is not NaN');
sst.notOk(numberIsNaN(true), 'true is not NaN');
sst.notOk(numberIsNaN(0), 'positive zero is not NaN');
sst.notOk(numberIsNaN(Infinity), 'Infinity is not NaN');
sst.notOk(numberIsNaN(-Infinity), '-Infinity is not NaN');
sst.notOk(numberIsNaN('foo'), 'string is not NaN');
sst.notOk(numberIsNaN('NaN'), 'string NaN is not NaN');
sst.end();
});
st.notOk(numberIsNaN([]), 'array is not NaN');
st.notOk(numberIsNaN({}), 'object is not NaN');
st.notOk(numberIsNaN(function () {}), 'function is not NaN');
st.test('valueOf', function (vt) {
var obj = { valueOf: function () { return NaN; } };
vt.ok(numberIsNaN(Number(obj)), 'object with valueOf of NaN, converted to Number, is NaN');
vt.notOk(numberIsNaN(obj), 'object with valueOf of NaN is not NaN');
vt.end();
});
st.end();
});
t.test('NaN literal', function (st) {
st.ok(numberIsNaN(NaN), 'NaN is NaN');
st.end();
});
};