first commit

This commit is contained in:
Warunee Tamkoo 2023-09-06 14:51:44 +07:00
commit eb2f504652
32490 changed files with 5731109 additions and 0 deletions

20
node_modules/string.prototype.padend/.editorconfig generated vendored Normal file
View file

@ -0,0 +1,20 @@
root = true
[*]
indent_style = tab
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 150
[CHANGELOG.md]
indent_style = space
indent_size = 2
[*.json]
max_line_length = off
[Makefile]
max_line_length = off

20
node_modules/string.prototype.padend/.eslintrc generated vendored Normal file
View file

@ -0,0 +1,20 @@
{
"root": true,
"extends": "@ljharb",
"rules": {
"id-length": [2, { "min": 1, "max": 25, "properties": "never" }],
"new-cap": [2, { "capIsNewExceptions": ["ToLength", "ToString", "RequireObjectCoercible"] }],
"no-magic-numbers": [0]
},
"overrides": [
{
"files": "test/**/*",
"rules": {
"no-invalid-this": 1,
},
},
],
}

9
node_modules/string.prototype.padend/.nycrc generated vendored Normal file
View file

@ -0,0 +1,9 @@
{
"all": true,
"check-coverage": false,
"reporter": ["text-summary", "text", "html", "json"],
"exclude": [
"coverage",
"test"
]
}

81
node_modules/string.prototype.padend/CHANGELOG.md generated vendored Normal file
View file

@ -0,0 +1,81 @@
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [v3.1.4](https://github.com/es-shims/String.prototype.padEnd/compare/v3.1.3...v3.1.4) - 2022-11-07
### Commits
- [actions] reuse common workflows [`1599a3a`](https://github.com/es-shims/String.prototype.padEnd/commit/1599a3af34b28f23014c96f4d30c2ce95931b151)
- [meta] use `npmignore` to autogenerate an npmignore file [`626d38c`](https://github.com/es-shims/String.prototype.padEnd/commit/626d38ce72992fe2d3f08f31fae71b6a2a1fb020)
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `@es-shims/api`, `safe-publish-latest`, `tape` [`9aa073a`](https://github.com/es-shims/String.prototype.padEnd/commit/9aa073a07f12e026789146dac55be7efa1bba1c4)
- [meta] add `auto-changelog` [`e48bc74`](https://github.com/es-shims/String.prototype.padEnd/commit/e48bc7404f1db9c572b7a4bcf571ce2e923b01b8)
- [Deps] update `define-properties`, `es-abstract` [`7113258`](https://github.com/es-shims/String.prototype.padEnd/commit/7113258f12294af629dd3968a5ea509dd881ba2e)
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `functions-have-names`, `tape` [`800dfc3`](https://github.com/es-shims/String.prototype.padEnd/commit/800dfc3bb40b4be12e0c221b9e606bad8f1d4006)
- [actions] update rebase action to use reusable workflow [`a3f9ddb`](https://github.com/es-shims/String.prototype.padEnd/commit/a3f9ddb4b25b55a7950ba3bc6a718bfab6eb7160)
- [actions] update codecov uploader [`6d2290f`](https://github.com/es-shims/String.prototype.padEnd/commit/6d2290fd32c506d6b49c37d7f110600ee4b8ef1b)
<!-- auto-changelog-above -->
3.1.3 / 2021-10-04
=================
* [Robustness] remove runtime `.push` call
* [readme] add github actions/codecov badges
* [Deps] update `es-abstract`
* [meta] use `prepublishOnly` script for npm 7+
* [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `@es-shims/api`, `aud`, `tape`
* [actions] update workflows
* [actions] use `node/install` instead of `node/run`; use `codecov` action
3.1.2 / 2021-02-20
=================
* [meta] do not publish github action workflow files
* [Deps] update `call-bind`, `es-abstract`
* [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `aud`, `functions-have-names`, `has-strict-mode`, `tape`
* [actions] update workflows
* [Tests] increase coverage
3.1.1 / 2020-11-21
=================
* [Deps] update `es-abstract`; use `call-bind` where applicable
* [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `functions-have-names`, `tape`; add `aud`, `safe-publish-latest
* [meta] gitignore nyc output
* [actions] add "Allow Edits" workflow
* [actions] switch Automatic Rebase workflow to `pull_request_target` event
* [Tests] migrate tests to Github Actions
* [Tests] run `nyc` on all tests
* [Tests] add `implementation` test; run `es-shim-api` in postlint; use `tape` runner
3.1.0 / 2019-12-14
=================
* [New] add `auto` entry point
* [Refactor] use split-up `es-abstract` (77% bundle size decrease)
* [readme] remove testling
* [readme] Stage 4
* [Deps] update `define-properties`, `es-abstract`, `function-bind`
* [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `covert`, `tape`, `@es-shims/api`; use `functions-have-names`
* [meta] add `funding` field
* [meta] Only apps should have lockfiles
* [Tests] use shared travis-ci configs
* [Tests] use `npx aud` instead of `nsp` or `npm audit` with hoops
* [Tests] remove `jscs`
* [actions] add automatic rebasing / merge commit blocking
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
node_modules/string.prototype.padend/LICENSE generated vendored Normal file
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.

46
node_modules/string.prototype.padend/README.md generated vendored Normal file
View file

@ -0,0 +1,46 @@
# String.prototype.padEnd <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
[![github actions][actions-image]][actions-url]
[![coverage][codecov-image]][codecov-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]
An ES2017 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](https://github.com/tc39/ecma262/pull/581).
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
[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
[codecov-image]: https://codecov.io/gh/es-shims/String.prototype.padEnd/branch/main/graphs/badge.svg
[codecov-url]: https://app.codecov.io/gh/es-shims/String.prototype.padEnd/
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/es-shims/String.prototype.padEnd
[actions-url]: https://github.com/es-shims/String.prototype.padEnd/actions

3
node_modules/string.prototype.padend/auto.js generated vendored Normal file
View file

@ -0,0 +1,3 @@
'use strict';
require('./shim')();

35
node_modules/string.prototype.padend/implementation.js generated vendored Normal file
View file

@ -0,0 +1,35 @@
'use strict';
var ToLength = require('es-abstract/2022/ToLength');
var ToString = require('es-abstract/2022/ToString');
var RequireObjectCoercible = require('es-abstract/2022/RequireObjectCoercible');
var callBound = require('call-bind/callBound');
var $slice = callBound('String.prototype.slice');
module.exports = function padEnd(maxLength) {
var O = RequireObjectCoercible(this);
var S = ToString(O);
var stringLength = ToLength(S.length);
var fillString;
if (arguments.length > 1) {
fillString = arguments[1];
}
var filler = typeof fillString === 'undefined' ? '' : ToString(fillString);
if (filler === '') {
filler = ' ';
}
var intMaxLength = 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;
};

25
node_modules/string.prototype.padend/index.js generated vendored Normal file
View file

@ -0,0 +1,25 @@
'use strict';
var define = require('define-properties');
var RequireObjectCoercible = require('es-abstract/2022/RequireObjectCoercible');
var callBind = require('call-bind');
var implementation = require('./implementation');
var getPolyfill = require('./polyfill');
var shim = require('./shim');
var bound = callBind.apply(getPolyfill());
var boundPadEnd = function padEnd(str, maxLength) {
RequireObjectCoercible(str);
var args = arguments.length > 2 ? [maxLength, arguments[2]] : [maxLength];
return bound(str, args);
};
define(boundPadEnd, {
getPolyfill: getPolyfill,
implementation: implementation,
shim: shim
});
module.exports = boundPadEnd;

98
node_modules/string.prototype.padend/package.json generated vendored Normal file
View file

@ -0,0 +1,98 @@
{
"name": "string.prototype.padend",
"version": "3.1.4",
"author": "Jordan Harband <ljharb@gmail.com>",
"funding": {
"url": "https://github.com/sponsors/ljharb"
},
"description": "ES2017 spec-compliant String.prototype.padEnd shim.",
"license": "MIT",
"main": "index.js",
"scripts": {
"prepack": "npmignore --auto --commentLines=autogenerated",
"prepublish": "not-in-publish || npm run prepublishOnly",
"prepublishOnly": "safe-publish-latest",
"pretest": "npm run lint",
"test": "npm run tests-only",
"posttest": "aud --production",
"tests-only": "nyc tape 'test/**/*.js'",
"lint": "eslint --ext=js,mjs .",
"postlint": "es-shim-api --bound",
"version": "auto-changelog && git add CHANGELOG.md",
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\""
},
"repository": {
"type": "git",
"url": "git://github.com/es-shims/String.prototype.padEnd.git"
},
"keywords": [
"String.prototype.padRight",
"String.prototype.padEnd",
"string",
"ES2017",
"ES8",
"shim",
"trim",
"padLeft",
"padRight",
"padStart",
"padEnd",
"polyfill",
"es-shim API"
],
"dependencies": {
"call-bind": "^1.0.2",
"define-properties": "^1.1.4",
"es-abstract": "^1.20.4"
},
"devDependencies": {
"@es-shims/api": "^2.2.3",
"@ljharb/eslint-config": "^21.0.0",
"aud": "^2.0.1",
"auto-changelog": "^2.4.0",
"eslint": "=8.8.0",
"function-bind": "^1.1.1",
"functions-have-names": "^1.2.3",
"has-strict-mode": "^1.0.1",
"in-publish": "^2.0.1",
"npmignore": "^0.3.0",
"nyc": "^10.3.2",
"safe-publish-latest": "^2.0.0",
"tape": "^5.6.1"
},
"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"
]
},
"engines": {
"node": ">= 0.4"
},
"auto-changelog": {
"output": "CHANGELOG.md",
"template": "keepachangelog",
"unreleased": false,
"commitLimit": false,
"backfillLimit": false,
"hideCredit": true,
"startingVersion": "3.1.4"
},
"publishConfig": {
"ignore": [
".github/workflows"
]
}
}

7
node_modules/string.prototype.padend/polyfill.js generated vendored Normal file
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;
};

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

@ -0,0 +1,14 @@
'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 testPadEnd() {
return String.prototype.padEnd !== polyfill;
}
});
return polyfill;
};

5
node_modules/string.prototype.padend/test/.eslintrc generated vendored Normal file
View file

@ -0,0 +1,5 @@
{
"rules": {
"max-statements-per-line": [2, { "max": 2 }]
}
}

View file

@ -0,0 +1,20 @@
'use strict';
var padEnd = require('../implementation');
var callBind = require('call-bind');
var test = require('tape');
var hasStrictMode = require('has-strict-mode')();
var runTests = require('./tests');
test('as a function', function (t) {
t.test('bad array/this value', { skip: !hasStrictMode }, function (st) {
/* eslint no-useless-call: 0 */
st['throws'](function () { padEnd.call(undefined); }, TypeError, 'undefined is not an object');
st['throws'](function () { padEnd.call(null); }, TypeError, 'null is not an object');
st.end();
});
runTests(callBind(padEnd), t);
t.end();
});

17
node_modules/string.prototype.padend/test/index.js generated vendored Normal file
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();
});

36
node_modules/string.prototype.padend/test/shimmed.js generated vendored Normal file
View file

@ -0,0 +1,36 @@
'use strict';
require('../auto');
var test = require('tape');
var defineProperties = require('define-properties');
var bind = require('function-bind');
var isEnumerable = Object.prototype.propertyIsEnumerable;
var functionsHaveNames = require('functions-have-names')();
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 String.prototype.padEnd.call(undefined, 'a'); }, TypeError, 'undefined is not an object');
st['throws'](function () { return String.prototype.padEnd.call(null, 'a'); }, TypeError, 'null is not an object');
st.end();
});
runTests(bind.call(Function.call, String.prototype.padEnd), t);
t.end();
});

26
node_modules/string.prototype.padend/test/tests.js generated vendored Normal file
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();
});
};