node_modules

This commit is contained in:
saeid
2019-07-15 13:07:31 +04:30
parent d3735c6d30
commit ce1a3ebf9c
35713 changed files with 3639219 additions and 1 deletions
+14
View File
@@ -0,0 +1,14 @@
{
"root": true,
"extends": "@ljharb",
"rules": {
"id-length": [2, { "min": 1, "max": 25, "properties": "never" }],
"max-nested-callbacks": [2, 3],
"max-statements": [2, 19],
"new-cap": [2, { "capIsNewExceptions": ["ToLength", "ToString", "RequireObjectCoercible"] }],
"no-invalid-this": [1],
"no-magic-numbers": [0]
}
}
+141
View File
@@ -0,0 +1,141 @@
{
"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
}
}
+27
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
+64
View File
@@ -0,0 +1,64 @@
language: node_js
node_js:
- "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: "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.8"
- node_js: "0.6"
- node_js: "0.4"
+15
View File
@@ -0,0 +1,15 @@
3.0.0 / 2015-11-17
=================
* Renamed to `padStart`/`padEnd` per November 2015 TC39 meeting.
2.0.0 / 2015-09-25
=================
* Implement the [es-shim API](es-shims/api).
* [Tests] up to `io.js` `v3.3`, `node` `v4.1`
* [Deps] update `es-abstract`
* [Dev Deps] Update `tape`, `jscs`, `eslint`, `@ljharb/eslint-config`, `nsp`
* [Refactor] Remove redundant `max` operation, per https://github.com/ljharb/proposal-string-pad-left-right/pull/2
1.0.0 / 2015-07-30
=================
* v1.0.0
+22
View File
@@ -0,0 +1,22 @@
The MIT License (MIT)
Copyright (c) 2015 EcmaScript Shims
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.
+45
View File
@@ -0,0 +1,45 @@
# String.prototype.padEnd <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]
An ES7 spec-compliant `String.prototype.padEnd` shim. Invoke its "shim" method to shim `String.prototype.padEnd` 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 proposal](https://github.com/tc39/proposal-string-pad-start-end).
Most common usage:
```js
var padEnd = require('string.prototype.padend');
assert(padEnd('foo', 5, 'bar') === 'fooba');
padEnd.shim();
assert(padEnd('foo', 2) === 'foo'.padEnd(2));
```
## Tests
Simply clone the repo, `npm install`, and run `npm test`
[package-url]: https://npmjs.com/package/string.prototype.padend
[npm-version-svg]: http://versionbadg.es/es-shims/String.prototype.padEnd.svg
[travis-svg]: https://travis-ci.org/es-shims/String.prototype.padEnd.svg
[travis-url]: https://travis-ci.org/es-shims/String.prototype.padEnd
[deps-svg]: https://david-dm.org/es-shims/String.prototype.padEnd.svg
[deps-url]: https://david-dm.org/es-shims/String.prototype.padEnd
[dev-deps-svg]: https://david-dm.org/es-shims/String.prototype.padEnd/dev-status.svg
[dev-deps-url]: https://david-dm.org/es-shims/String.prototype.padEnd#info=devDependencies
[testling-svg]: https://ci.testling.com/es-shims/String.prototype.padEnd.png
[testling-url]: https://ci.testling.com/es-shims/String.prototype.padEnd
[npm-badge-png]: https://nodei.co/npm/string.prototype.padend.png?downloads=true&stars=true
[license-image]: http://img.shields.io/npm/l/string.prototype.padend.svg
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/string.prototype.padend.svg
[downloads-url]: http://npm-stat.com/charts.html?package=string.prototype.padend
+32
View File
@@ -0,0 +1,32 @@
'use strict';
var bind = require('function-bind');
var ES = require('es-abstract/es7');
var slice = bind.call(Function.call, String.prototype.slice);
module.exports = function padEnd(maxLength) {
var O = ES.RequireObjectCoercible(this);
var S = ES.ToString(O);
var stringLength = ES.ToLength(S.length);
var fillString;
if (arguments.length > 1) {
fillString = arguments[1];
}
var filler = typeof fillString === 'undefined' ? '' : ES.ToString(fillString);
if (filler === '') {
filler = ' ';
}
var intMaxLength = ES.ToLength(maxLength);
if (intMaxLength <= stringLength) {
return S;
}
var fillLen = intMaxLength - stringLength;
while (filler.length < fillLen) {
var fLen = filler.length;
var remainingCodeUnits = fillLen - fLen;
filler += fLen > remainingCodeUnits ? slice(filler, 0, remainingCodeUnits) : filler;
}
var truncatedStringFiller = filler.length > fillLen ? slice(filler, 0, fillLen) : filler;
return S + truncatedStringFiller;
};
+28
View File
@@ -0,0 +1,28 @@
'use strict';
var bind = require('function-bind');
var define = require('define-properties');
var ES = require('es-abstract/es7');
var implementation = require('./implementation');
var getPolyfill = require('./polyfill');
var shim = require('./shim');
var bound = bind.call(Function.apply, implementation);
var boundPadEnd = function padEnd(str, maxLength) {
ES.RequireObjectCoercible(str);
var args = [maxLength];
if (arguments.length > 2) {
args.push(arguments[2]);
}
return bound(str, args);
};
define(boundPadEnd, {
getPolyfill: getPolyfill,
implementation: implementation,
shim: shim
});
module.exports = boundPadEnd;
+104
View File
@@ -0,0 +1,104 @@
{
"_from": "string.prototype.padend@^3.0.0",
"_id": "string.prototype.padend@3.0.0",
"_inBundle": false,
"_integrity": "sha1-86rvfBcZ8XDF6rHDK/eA2W4h8vA=",
"_location": "/string.prototype.padend",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "string.prototype.padend@^3.0.0",
"name": "string.prototype.padend",
"escapedName": "string.prototype.padend",
"rawSpec": "^3.0.0",
"saveSpec": null,
"fetchSpec": "^3.0.0"
},
"_requiredBy": [
"/@vue/cli-service"
],
"_resolved": "https://registry.npmjs.org/string.prototype.padend/-/string.prototype.padend-3.0.0.tgz",
"_shasum": "f3aaef7c1719f170c5eab1c32bf780d96e21f2f0",
"_spec": "string.prototype.padend@^3.0.0",
"_where": "D:\\Atom\\Git\\Laravel_CSSd\\node_modules\\@vue\\cli-service",
"author": {
"name": "Jordan Harband"
},
"bugs": {
"url": "https://github.com/es-shims/String.prototype.padEnd/issues"
},
"bundleDependencies": false,
"dependencies": {
"define-properties": "^1.1.2",
"es-abstract": "^1.4.3",
"function-bind": "^1.0.2"
},
"deprecated": false,
"description": "ES7 spec-compliant String.prototype.padEnd shim.",
"devDependencies": {
"@es-shims/api": "^1.0.0",
"@ljharb/eslint-config": "^1.6.0",
"covert": "^1.1.0",
"eslint": "^1.9.0",
"jscs": "^2.5.1",
"nsp": "^2.0.2",
"tape": "^4.2.2"
},
"engines": {
"node": ">= 0.4"
},
"homepage": "https://github.com/es-shims/String.prototype.padEnd#readme",
"keywords": [
"String.prototype.padRight",
"String.prototype.padEnd",
"string",
"ES7",
"shim",
"trim",
"padLeft",
"padRight",
"padStart",
"padEnd",
"polyfill",
"es-shim API"
],
"license": "MIT",
"main": "index.js",
"name": "string.prototype.padend",
"repository": {
"type": "git",
"url": "git://github.com/es-shims/String.prototype.padEnd.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 && npm run tests-only && npm run security",
"test:module": "node test/index.js",
"test:shimmed": "node test/shimmed.js",
"tests-only": "es-shim-api --bound && 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": "3.0.0"
}
+7
View File
@@ -0,0 +1,7 @@
'use strict';
var implementation = require('./implementation');
module.exports = function getPolyfill() {
return typeof String.prototype.padEnd === 'function' ? String.prototype.padEnd : implementation;
};
+10
View File
@@ -0,0 +1,10 @@
'use strict';
var getPolyfill = require('./polyfill');
var define = require('define-properties');
module.exports = function shimPadEnd() {
var polyfill = getPolyfill();
define(String.prototype, { padEnd: polyfill }, { padEnd: function () { return String.prototype.padEnd !== polyfill; } });
return polyfill;
};
+17
View File
@@ -0,0 +1,17 @@
'use strict';
var padEnd = 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 () { padEnd(undefined, 'a'); }, TypeError, 'undefined is not an object');
st.throws(function () { padEnd(null, 'a'); }, TypeError, 'null is not an object');
st.end();
});
runTests(padEnd, t);
t.end();
});
+37
View File
@@ -0,0 +1,37 @@
'use strict';
var padEnd = require('../');
padEnd.shim();
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';
var runTests = require('./tests');
test('shimmed', function (t) {
t.equal(String.prototype.padEnd.length, 1, 'String#padEnd has a length of 1');
t.test('Function name', { skip: !functionsHaveNames }, function (st) {
st.equal(String.prototype.padEnd.name, 'padEnd', 'String#padEnd has name "padEnd"');
st.end();
});
t.test('enumerability', { skip: !defineProperties.supportsDescriptors }, function (et) {
et.equal(false, isEnumerable.call(String.prototype, 'padEnd'), 'String#padEnd 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 padEnd(undefined, 'a'); }, TypeError, 'undefined is not an object');
st.throws(function () { return padEnd(null, 'a'); }, TypeError, 'null is not an object');
st.end();
});
runTests(bind.call(Function.call, String.prototype.padEnd), t);
t.end();
});
+26
View File
@@ -0,0 +1,26 @@
'use strict';
module.exports = function (padEnd, t) {
t.test('normal cases', function (st) {
st.equal(padEnd('a', 3, 'b'), 'abb', 'string pads end with single character');
st.equal(padEnd('abc', 3, 'd'), 'abc', 'string already of maximum length noops');
st.equal(padEnd('abc', -3, 'd'), 'abc', 'string already larger than maximum length noops');
st.equal(padEnd('cd', 3, 'ab'), 'cda', 'string with maximum length equal to length plus filler length, pads');
st.equal(padEnd('abc'), 'abc', 'absent maximum length is noop');
st.equal(padEnd('a', 3), 'a ', 'absent fillStr defaults to a space');
st.equal(padEnd('ed', 6, null), 'ednull', 'non-string fillStr gets stringified');
st.end();
});
t.test('truncated fill string', function (st) {
st.equal(padEnd('a', 2, 'bc'), 'ab', 'truncates at the provided max length');
st.end();
});
t.test('exceptions', function (st) {
st.end();
});
};