Fixed #1 - Fixed the whatsnew-** script for loading release notes into builds
Added test to ensure that release notes are parsed properly Updated to latest dependencies to fix security vulnerability Updated GH Actions Workflow to run test before updating tag Updated README.md to reflect proper whatsnew documentation.
This commit is contained in:
15
node_modules/string.prototype.trimleft/.eslintrc
generated
vendored
Normal file
15
node_modules/string.prototype.trimleft/.eslintrc
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"root": true,
|
||||
|
||||
"extends": "@ljharb",
|
||||
|
||||
"overrides": [
|
||||
{
|
||||
"files": "test/*",
|
||||
"rules": {
|
||||
"id-length": 0,
|
||||
"no-invalid-this": 1,
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
15
node_modules/string.prototype.trimleft/.github/workflows/rebase.yml
generated
vendored
Normal file
15
node_modules/string.prototype.trimleft/.github/workflows/rebase.yml
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
name: Automatic Rebase
|
||||
|
||||
on: [pull_request]
|
||||
|
||||
jobs:
|
||||
_:
|
||||
name: "Automatic Rebase"
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: ljharb/rebase@master
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
12
node_modules/string.prototype.trimleft/.travis.yml
generated
vendored
Normal file
12
node_modules/string.prototype.trimleft/.travis.yml
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
version: ~> 1.0
|
||||
language: node_js
|
||||
os:
|
||||
- linux
|
||||
import:
|
||||
- ljharb/travis-ci:node/all.yml
|
||||
- ljharb/travis-ci:node/pretest.yml
|
||||
- ljharb/travis-ci:node/posttest.yml
|
||||
- ljharb/travis-ci:node/coverage.yml
|
||||
matrix:
|
||||
allow_failures:
|
||||
- env: COVERAGE=true
|
||||
37
node_modules/string.prototype.trimleft/CHANGELOG.md
generated
vendored
Normal file
37
node_modules/string.prototype.trimleft/CHANGELOG.md
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
2.1.1 / 2019-12-17
|
||||
=================
|
||||
* [meta] add `funding` field
|
||||
* [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `functions-have-names`, `tape`
|
||||
* [Tests] use shared travis-ci configs
|
||||
* [actions] add automatic rebasing / merge commit blocking
|
||||
|
||||
2.1.0 / 2019-09-09
|
||||
=================
|
||||
* [New] add `auto` entry point
|
||||
* [Deps] update `function-bind`, `define-properties`
|
||||
* [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `covert`, `tape`, `@es-shims/api`
|
||||
* [meta] clean up scripts
|
||||
* [meta] Only apps should have lockfiles
|
||||
* [Tests] up to `node` `v12.10`, `v11.15`, `v10.16`, `v9.11`, `v8.16`, `v7.10`, `v6.17`, `v5.10`, `v4.9`; use `nvm install-latest-npm`
|
||||
* [Tests] allow a name of `trimLeft` or `trimStart`
|
||||
* [Tests] fix tests for the mongolian vowel separator
|
||||
* [Tests] use `functions-have-names`
|
||||
* [Tests] use `npx aud` instead of `nsp` or `npm audit` with hoops
|
||||
* [Tests] remove `jscs`
|
||||
* [Tests] use pretest/posttest for linting/security
|
||||
|
||||
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
22
node_modules/string.prototype.trimleft/LICENSE
generated
vendored
Normal 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
47
node_modules/string.prototype.trimleft/README.md
generated
vendored
Normal 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
|
||||
3
node_modules/string.prototype.trimleft/auto.js
generated
vendored
Normal file
3
node_modules/string.prototype.trimleft/auto.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
'use strict';
|
||||
|
||||
require('./shim')();
|
||||
12
node_modules/string.prototype.trimleft/implementation.js
generated
vendored
Normal file
12
node_modules/string.prototype.trimleft/implementation.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
'use strict';
|
||||
|
||||
var bind = require('function-bind');
|
||||
var replace = bind.call(Function.call, String.prototype.replace);
|
||||
|
||||
/* eslint-disable no-control-regex */
|
||||
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]*/;
|
||||
/* eslint-enable no-control-regex */
|
||||
|
||||
module.exports = function trimLeft() {
|
||||
return replace(this, leftWhitespace, '');
|
||||
};
|
||||
18
node_modules/string.prototype.trimleft/index.js
generated
vendored
Normal file
18
node_modules/string.prototype.trimleft/index.js
generated
vendored
Normal 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;
|
||||
100
node_modules/string.prototype.trimleft/package.json
generated
vendored
Normal file
100
node_modules/string.prototype.trimleft/package.json
generated
vendored
Normal file
@@ -0,0 +1,100 @@
|
||||
{
|
||||
"_from": "string.prototype.trimleft@^2.1.1",
|
||||
"_id": "string.prototype.trimleft@2.1.1",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-iu2AGd3PuP5Rp7x2kEZCrB2Nf41ehzh+goo8TV7z8/XDBbsvc6HQIlUl9RjkZ4oyrW1XM5UwlGl1oVEaDjg6Ag==",
|
||||
"_location": "/string.prototype.trimleft",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "string.prototype.trimleft@^2.1.1",
|
||||
"name": "string.prototype.trimleft",
|
||||
"escapedName": "string.prototype.trimleft",
|
||||
"rawSpec": "^2.1.1",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^2.1.1"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/es-abstract"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/string.prototype.trimleft/-/string.prototype.trimleft-2.1.1.tgz",
|
||||
"_shasum": "9bdb8ac6abd6d602b17a4ed321870d2f8dcefc74",
|
||||
"_spec": "string.prototype.trimleft@^2.1.1",
|
||||
"_where": "/Users/drew.heavner/Documents/Github/upload-google-play/node_modules/es-abstract",
|
||||
"author": {
|
||||
"name": "Jordan Harband"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/es-shims/String.prototype.trimLeft/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"define-properties": "^1.1.3",
|
||||
"function-bind": "^1.1.1"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "ES7 spec-compliant String.prototype.trimLeft shim.",
|
||||
"devDependencies": {
|
||||
"@es-shims/api": "^2.1.2",
|
||||
"@ljharb/eslint-config": "^15.0.2",
|
||||
"covert": "^1.1.1",
|
||||
"eslint": "^6.7.2",
|
||||
"functions-have-names": "^1.2.0",
|
||||
"tape": "^4.12.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.4"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
},
|
||||
"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",
|
||||
"lint": "eslint .",
|
||||
"posttest": "npx aud",
|
||||
"pretest": "npm run lint && es-shim-api --bound",
|
||||
"test": "npm run tests-only",
|
||||
"test:module": "node test",
|
||||
"test:shimmed": "node test/shimmed",
|
||||
"tests-only": "npm run --silent test:shimmed && npm run --silent 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.1.1"
|
||||
}
|
||||
14
node_modules/string.prototype.trimleft/polyfill.js
generated
vendored
Normal file
14
node_modules/string.prototype.trimleft/polyfill.js
generated
vendored
Normal 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
14
node_modules/string.prototype.trimleft/shim.js
generated
vendored
Normal 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
18
node_modules/string.prototype.trimleft/test/index.js
generated
vendored
Normal 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
37
node_modules/string.prototype.trimleft/test/shimmed.js
generated
vendored
Normal 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 = require('functions-have-names')();
|
||||
|
||||
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((/^(?:trimLeft|trimStart)$/).test(String.prototype.trimLeft.name), true, 'String#trimLeft has name "trimLeft" or "trimStart"');
|
||||
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();
|
||||
});
|
||||
26
node_modules/string.prototype.trimleft/test/tests.js
generated
vendored
Normal file
26
node_modules/string.prototype.trimleft/test/tests.js
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
'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\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();
|
||||
});
|
||||
|
||||
// see https://codeblog.jonskeet.uk/2014/12/01/when-is-an-identifier-not-an-identifier-attack-of-the-mongolian-vowel-separator/
|
||||
var mongolianVowelSeparator = '\u180E';
|
||||
t.test('unicode >= 4 && < 6.3', { skip: !(/^\s$/).test(mongolianVowelSeparator) }, function (st) {
|
||||
st.equal(trimLeft(mongolianVowelSeparator + 'a' + mongolianVowelSeparator), 'a' + mongolianVowelSeparator, 'mongolian vowel separator is whitespace');
|
||||
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();
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user