This commit is contained in:
Shivam Mathur
2019-09-06 05:17:43 +05:30
commit 8f9786b73f
7058 changed files with 1813932 additions and 0 deletions

10
node_modules/string.prototype.trimleft/.eslintrc generated vendored Normal file
View File

@ -0,0 +1,10 @@
{
"root": true,
"extends": "@ljharb",
"rules": {
"max-nested-callbacks": [2, 3],
"no-invalid-this": 1
}
}

159
node_modules/string.prototype.trimleft/.jscs.json generated vendored Normal file
View File

@ -0,0 +1,159 @@
{
"es3": true,
"additionalRules": [],
"requireSemicolons": true,
"disallowMultipleSpaces": true,
"disallowIdentifierNames": [],
"requireCurlyBraces": {
"allExcept": [],
"keywords": ["if", "else", "for", "while", "do", "try", "catch"]
},
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch", "function"],
"disallowSpaceAfterKeywords": [],
"disallowSpaceBeforeComma": true,
"disallowSpaceAfterComma": false,
"disallowSpaceBeforeSemicolon": true,
"disallowNodeTypes": [
"DebuggerStatement",
"ForInStatement",
"LabeledStatement",
"SwitchCase",
"SwitchStatement",
"WithStatement"
],
"requireObjectKeysOnNewLine": { "allExcept": ["sameLine"] },
"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": { "allExcept": ["keywords"] },
"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,
"disallowMultiLineTernary": true,
"validateOrderInObjectKeys": "asc-insensitive",
"disallowIdenticalDestructuringNames": true,
"disallowNestedTernaries": { "maxLevel": 1 },
"requireSpaceAfterComma": { "allExcept": ["trailing"] },
"requireAlignedMultilineParams": false,
"requireSpacesInGenerator": {
"afterStar": true
},
"disallowSpacesInGenerator": {
"beforeStar": true
},
"disallowVar": false,
"requireArrayDestructuring": false,
"requireEnhancedObjectLiterals": false,
"requireObjectDestructuring": false,
"requireEarlyReturn": false,
"requireCapitalizedConstructorsNew": {
"allExcept": ["Function", "String", "Object", "Symbol", "Number", "Date", "RegExp", "Error", "Boolean", "Array"]
}
}

27
node_modules/string.prototype.trimleft/.npmignore generated vendored Normal file
View File

@ -0,0 +1,27 @@
# Logs
logs
*.log
# Runtime data
pids
*.pid
*.seed
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# node-waf configuration
.lock-wscript
# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules

73
node_modules/string.prototype.trimleft/.travis.yml generated vendored Normal file
View File

@ -0,0 +1,73 @@
language: node_js
node_js:
- "5.5"
- "5.4"
- "5.3"
- "5.2"
- "5.1"
- "5.0"
- "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.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 npm install -g npm; fi'
script:
- 'if [ "${TRAVIS_NODE_VERSION}" != "4.2" ]; then npm run tests-only ; else npm test ; fi'
sudo: false
matrix:
fast_finish: true
allow_failures:
- node_js: "5.4"
- node_js: "5.3"
- node_js: "5.2"
- node_js: "5.1"
- node_js: "5.0"
- node_js: "4.1"
- node_js: "4.0"
- node_js: "iojs-v3.2"
- node_js: "iojs-v3.1"
- node_js: "iojs-v3.0"
- 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.6"
- node_js: "0.4"

15
node_modules/string.prototype.trimleft/CHANGELOG.md generated vendored Normal file
View File

@ -0,0 +1,15 @@
2.0.0 / 2016-02-06
=================
* [Breaking] conform to the es-shim API
* [Deps] update `define-properties`
* [Dev Deps] update `tape`, `jscs`, `nsp`, `eslint`, `@ljharb/eslint-config`
* [Tests] up to `node` `v5.5`
* [Tests] fix npm upgrades on older nodes
1.0.1 / 2015-07-29
=================
* Fix deps mistakenly being dev deps
1.0.0 / 2015-07-29
=================
* v1.0.0

22
node_modules/string.prototype.trimleft/LICENSE generated vendored Normal file
View File

@ -0,0 +1,22 @@
The MIT License (MIT)
Copyright (c) 2015 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.

47
node_modules/string.prototype.trimleft/README.md generated vendored Normal file
View File

@ -0,0 +1,47 @@
String.prototype.trimLeft <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
[![Build Status][travis-svg]][travis-url]
[![dependency status][deps-svg]][deps-url]
[![dev dependency status][dev-deps-svg]][dev-deps-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]
[![npm badge][npm-badge-png]][package-url]
[![browser support][testling-svg]][testling-url]
A spec-proposal-compliant `String.prototype.trimLeft` shim. Invoke its "shim" method to shim `String.prototype.trimLeft` if it is unavailable.
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-object.assign). In an ES6 environment, it will also work properly with `Symbol`s.
Most common usage:
```js
var trimLeft = require('string.prototype.trimleft');
assert(trimLeft(' \t\na \t\n') === 'a \t\n');
if (!String.prototype.trimLeft) {
trimLeft.shim();
}
assert(trimLeft(' \t\na \t\n') === ' \t\na \t\n'.trimLeft());
```
## Tests
Simply clone the repo, `npm install`, and run `npm test`
[package-url]: https://npmjs.com/package/string.prototype.trimleft
[npm-version-svg]: http://vb.teelaun.ch/es-shims/String.prototype.trimLeft.svg
[travis-svg]: https://travis-ci.org/es-shims/String.prototype.trimLeft.svg
[travis-url]: https://travis-ci.org/es-shims/String.prototype.trimLeft
[deps-svg]: https://david-dm.org/es-shims/String.prototype.trimLeft.svg
[deps-url]: https://david-dm.org/es-shims/String.prototype.trimLeft
[dev-deps-svg]: https://david-dm.org/es-shims/String.prototype.trimLeft/dev-status.svg
[dev-deps-url]: https://david-dm.org/es-shims/String.prototype.trimLeft#info=devDependencies
[testling-svg]: https://ci.testling.com/es-shims/String.prototype.trimLeft.png
[testling-url]: https://ci.testling.com/es-shims/String.prototype.trimLeft
[npm-badge-png]: https://nodei.co/npm/string.prototype.trimleft.png?downloads=true&stars=true
[license-image]: http://img.shields.io/npm/l/string.prototype.trimleft.svg
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/string.prototype.trimleft.svg
[downloads-url]: http://npm-stat.com/charts.html?package=string.prototype.trimleft

View File

@ -0,0 +1,10 @@
'use strict';
var bind = require('function-bind');
var replace = bind.call(Function.call, String.prototype.replace);
var leftWhitespace = /^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]*/;
module.exports = function trimLeft() {
return replace(this, leftWhitespace, '');
};

18
node_modules/string.prototype.trimleft/index.js generated vendored Normal file
View File

@ -0,0 +1,18 @@
'use strict';
var bind = require('function-bind');
var define = require('define-properties');
var implementation = require('./implementation');
var getPolyfill = require('./polyfill');
var shim = require('./shim');
var bound = bind.call(Function.call, getPolyfill());
define(bound, {
getPolyfill: getPolyfill,
implementation: implementation,
shim: shim
});
module.exports = bound;

104
node_modules/string.prototype.trimleft/package.json generated vendored Normal file
View File

@ -0,0 +1,104 @@
{
"_args": [
[
"string.prototype.trimleft@2.0.0",
"E:\\python\\setup-php"
]
],
"_development": true,
"_from": "string.prototype.trimleft@2.0.0",
"_id": "string.prototype.trimleft@2.0.0",
"_inBundle": false,
"_integrity": "sha1-aLaqjhYsaoDnbjqKDC50cYbicf8=",
"_location": "/string.prototype.trimleft",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "string.prototype.trimleft@2.0.0",
"name": "string.prototype.trimleft",
"escapedName": "string.prototype.trimleft",
"rawSpec": "2.0.0",
"saveSpec": null,
"fetchSpec": "2.0.0"
},
"_requiredBy": [
"/es-abstract"
],
"_resolved": "https://registry.npmjs.org/string.prototype.trimleft/-/string.prototype.trimleft-2.0.0.tgz",
"_spec": "2.0.0",
"_where": "E:\\python\\setup-php",
"author": {
"name": "Jordan Harband"
},
"bugs": {
"url": "https://github.com/es-shims/String.prototype.trimLeft/issues"
},
"dependencies": {
"define-properties": "^1.1.2",
"function-bind": "^1.0.2"
},
"description": "ES7 spec-compliant String.prototype.trimLeft shim.",
"devDependencies": {
"@es-shims/api": "^1.1.0",
"@ljharb/eslint-config": "^1.6.1",
"covert": "^1.1.0",
"eslint": "^1.10.3",
"jscs": "^2.9.0",
"nsp": "^2.2.0",
"tape": "^4.4.0"
},
"engines": {
"node": ">= 0.4"
},
"homepage": "https://github.com/es-shims/String.prototype.trimLeft#readme",
"keywords": [
"String.prototype.trimLeft",
"string",
"ES7",
"shim",
"trim",
"trimLeft",
"trimRight",
"polyfill",
"es-shim API"
],
"license": "MIT",
"main": "index.js",
"name": "string.prototype.trimleft",
"repository": {
"type": "git",
"url": "git://github.com/es-shims/String.prototype.trimLeft.git"
},
"scripts": {
"coverage": "covert test/*.js",
"coverage-quiet": "covert test/*.js --quiet",
"eslint": "eslint test/*.js *.js",
"jscs": "jscs test/*.js *.js",
"lint": "npm run jscs && npm run eslint",
"security": "nsp check",
"test": "npm run lint && es-shim-api --bound && npm run tests-only && npm run security",
"test:module": "node test/index.js",
"test:shimmed": "node test/shimmed.js",
"tests-only": "npm run test:shimmed && npm run test:module"
},
"testling": {
"files": "test/index.js",
"browsers": [
"iexplore/9.0..latest",
"firefox/4.0..6.0",
"firefox/15.0..latest",
"firefox/nightly",
"chrome/4.0..10.0",
"chrome/20.0..latest",
"chrome/canary",
"opera/11.6..latest",
"opera/next",
"safari/5.0..latest",
"ipad/6.0..latest",
"iphone/6.0..latest",
"android-browser/4.2"
]
},
"version": "2.0.0"
}

14
node_modules/string.prototype.trimleft/polyfill.js generated vendored Normal file
View File

@ -0,0 +1,14 @@
'use strict';
var implementation = require('./implementation');
module.exports = function getPolyfill() {
if (!String.prototype.trimLeft) {
return implementation;
}
var zeroWidthSpace = '\u200b';
if (zeroWidthSpace.trimLeft() !== zeroWidthSpace) {
return implementation;
}
return String.prototype.trimLeft;
};

14
node_modules/string.prototype.trimleft/shim.js generated vendored Normal file
View File

@ -0,0 +1,14 @@
'use strict';
var define = require('define-properties');
var getPolyfill = require('./polyfill');
module.exports = function shimTrimLeft() {
var polyfill = getPolyfill();
define(
String.prototype,
{ trimLeft: polyfill },
{ trimLeft: function () { return String.prototype.trimLeft !== polyfill; } }
);
return polyfill;
};

18
node_modules/string.prototype.trimleft/test/index.js generated vendored Normal file
View File

@ -0,0 +1,18 @@
'use strict';
var trimLeft = require('../');
var test = require('tape');
var runTests = require('./tests');
test('as a function', function (t) {
t.test('bad array/this value', function (st) {
st.throws(function () { trimLeft(undefined, 'a'); }, TypeError, 'undefined is not an object');
st.throws(function () { trimLeft(null, 'a'); }, TypeError, 'null is not an object');
st.end();
});
runTests(trimLeft, t);
t.end();
});

37
node_modules/string.prototype.trimleft/test/shimmed.js generated vendored Normal file
View File

@ -0,0 +1,37 @@
'use strict';
var trimLeft = require('../');
trimLeft.shim();
var runTests = require('./tests');
var test = require('tape');
var defineProperties = require('define-properties');
var bind = require('function-bind');
var isEnumerable = Object.prototype.propertyIsEnumerable;
var functionsHaveNames = function f() {}.name === 'f';
test('shimmed', function (t) {
t.equal(String.prototype.trimLeft.length, 0, 'String#trimLeft has a length of 0');
t.test('Function name', { skip: !functionsHaveNames }, function (st) {
st.equal(String.prototype.trimLeft.name, 'trimLeft', 'String#trimLeft has name "trimLeft"');
st.end();
});
t.test('enumerability', { skip: !defineProperties.supportsDescriptors }, function (et) {
et.equal(false, isEnumerable.call(String.prototype, 'trimLeft'), 'String#trimLeft is not enumerable');
et.end();
});
var supportsStrictMode = (function () { return typeof this === 'undefined'; }());
t.test('bad string/this value', { skip: !supportsStrictMode }, function (st) {
st.throws(function () { return trimLeft(undefined, 'a'); }, TypeError, 'undefined is not an object');
st.throws(function () { return trimLeft(null, 'a'); }, TypeError, 'null is not an object');
st.end();
});
runTests(bind.call(Function.call, String.prototype.trimLeft), t);
t.end();
});

19
node_modules/string.prototype.trimleft/test/tests.js generated vendored Normal file
View File

@ -0,0 +1,19 @@
'use strict';
module.exports = function (trimLeft, t) {
t.test('normal cases', function (st) {
st.equal(trimLeft(' \t\na \t\n'), 'a \t\n', 'strips whitespace off the left side');
st.equal(trimLeft('a'), 'a', 'noop when no whitespace');
var allWhitespaceChars = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
st.equal(trimLeft(allWhitespaceChars + 'a' + allWhitespaceChars), 'a' + allWhitespaceChars, 'all expected whitespace chars are trimmed');
st.end();
});
t.test('zero-width spaces', function (st) {
var zeroWidth = '\u200b';
st.equal(trimLeft(zeroWidth), zeroWidth, 'zero width space does not trim');
st.end();
});
};