1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-06-17 01:16:00 +00:00
This commit is contained in:
MatteZ02
2020-03-03 22:30:50 +02:00
parent edfcc6f474
commit 30022c7634
11800 changed files with 1984416 additions and 1 deletions

15
node_modules/string.prototype.trimright/.eslintrc generated vendored Normal file
View File

@ -0,0 +1,15 @@
{
"root": true,
"extends": "@ljharb",
"overrides": [
{
"files": "test/*",
"rules": {
"id-length": 0,
"no-invalid-this": 1,
},
},
],
}

View 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.trimright/.travis.yml generated vendored Normal file
View 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.trimright/CHANGELOG.md generated vendored Normal file
View 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.trimright/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.trimright/README.md generated vendored Normal file
View File

@ -0,0 +1,47 @@
String.prototype.trimRight <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.trimRight` shim. Invoke its "shim" method to shim `String.prototype.trimRight` 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 trimRight = require('string.prototype.trimright');
assert(trimRight(' \t\na \t\n') === 'a \t\n');
if (!String.prototype.trimRight) {
trimRight.shim();
}
assert(trimRight(' \t\na \t\n ') === ' \t\na \t\n '.trimRight());
```
## Tests
Simply clone the repo, `npm install`, and run `npm test`
[package-url]: https://npmjs.com/package/string.prototype.trimright
[npm-version-svg]: http://vb.teelaun.ch/es-shims/String.prototype.trimRight.svg
[travis-svg]: https://travis-ci.org/es-shims/String.prototype.trimRight.svg
[travis-url]: https://travis-ci.org/es-shims/String.prototype.trimRight
[deps-svg]: https://david-dm.org/es-shims/String.prototype.trimRight.svg
[deps-url]: https://david-dm.org/es-shims/String.prototype.trimRight
[dev-deps-svg]: https://david-dm.org/es-shims/String.prototype.trimRight/dev-status.svg
[dev-deps-url]: https://david-dm.org/es-shims/String.prototype.trimRight#info=devDependencies
[testling-svg]: https://ci.testling.com/es-shims/String.prototype.trimRight.png
[testling-url]: https://ci.testling.com/es-shims/String.prototype.trimRight
[npm-badge-png]: https://nodei.co/npm/string.prototype.trimright.png?downloads=true&stars=true
[license-image]: http://img.shields.io/npm/l/string.prototype.trimright.svg
[license-url]: LICENSE
[downloads-image]: http://img.shields.io/npm/dm/string.prototype.trimright.svg
[downloads-url]: http://npm-stat.com/charts.html?package=string.prototype.trimright

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

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

View 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 rightWhitespace = /[\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 trimRight() {
return replace(this, rightWhitespace, '');
};

18
node_modules/string.prototype.trimright/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;

100
node_modules/string.prototype.trimright/package.json generated vendored Normal file
View File

@ -0,0 +1,100 @@
{
"_from": "string.prototype.trimright@^2.1.1",
"_id": "string.prototype.trimright@2.1.1",
"_inBundle": false,
"_integrity": "sha512-qFvWL3/+QIgZXVmJBfpHmxLB7xsUXz6HsUmP8+5dRaC3Q7oKUv9Vo6aMCRZC1smrtyECFsIT30PqBJ1gTjAs+g==",
"_location": "/string.prototype.trimright",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "string.prototype.trimright@^2.1.1",
"name": "string.prototype.trimright",
"escapedName": "string.prototype.trimright",
"rawSpec": "^2.1.1",
"saveSpec": null,
"fetchSpec": "^2.1.1"
},
"_requiredBy": [
"/es-abstract"
],
"_resolved": "https://registry.npmjs.org/string.prototype.trimright/-/string.prototype.trimright-2.1.1.tgz",
"_shasum": "440314b15996c866ce8a0341894d45186200c5d9",
"_spec": "string.prototype.trimright@^2.1.1",
"_where": "C:\\Users\\matia\\Documents\\GitHub\\Musix\\node_modules\\es-abstract",
"author": {
"name": "Jordan Harband"
},
"bugs": {
"url": "https://github.com/es-shims/String.prototype.trimRight/issues"
},
"bundleDependencies": false,
"dependencies": {
"define-properties": "^1.1.3",
"function-bind": "^1.1.1"
},
"deprecated": false,
"description": "ES7 spec-compliant String.prototype.trimRight 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.trimRight#readme",
"keywords": [
"String.prototype.trimRight",
"string",
"ES7",
"shim",
"trim",
"trimLeft",
"trimRight",
"polyfill",
"es-shim API"
],
"license": "MIT",
"main": "index.js",
"name": "string.prototype.trimright",
"repository": {
"type": "git",
"url": "git://github.com/es-shims/String.prototype.trimRight.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 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.1.1"
}

14
node_modules/string.prototype.trimright/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.trimRight) {
return implementation;
}
var zeroWidthSpace = '\u200b';
if (zeroWidthSpace.trimRight() !== zeroWidthSpace) {
return implementation;
}
return String.prototype.trimRight;
};

14
node_modules/string.prototype.trimright/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 shimTrimRight() {
var polyfill = getPolyfill();
define(
String.prototype,
{ trimRight: polyfill },
{ trimRight: function () { return String.prototype.trimRight !== polyfill; } }
);
return polyfill;
};

17
node_modules/string.prototype.trimright/test/index.js generated vendored Normal file
View File

@ -0,0 +1,17 @@
'use strict';
var trimRight = 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 () { trimRight(undefined, 'a'); }, TypeError, 'undefined is not an object');
st['throws'](function () { trimRight(null, 'a'); }, TypeError, 'null is not an object');
st.end();
});
runTests(trimRight, t);
t.end();
});

View File

@ -0,0 +1,37 @@
'use strict';
var trimRight = require('../');
trimRight.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.trimRight.length, 0, 'String#trimRight has a length of 0');
t.test('Function name', { skip: !functionsHaveNames }, function (st) {
st.equal((/^(?:trimRight|trimEnd)$/).test(String.prototype.trimRight.name), true, 'String#trimRight has name "trimRight" or "trimEnd"');
st.end();
});
t.test('enumerability', { skip: !defineProperties.supportsDescriptors }, function (et) {
et.equal(false, isEnumerable.call(String.prototype, 'trimRight'), 'String#trimRight 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 trimRight(undefined, 'a'); }, TypeError, 'undefined is not an object');
st['throws'](function () { return trimRight(null, 'a'); }, TypeError, 'null is not an object');
st.end();
});
runTests(bind.call(Function.call, String.prototype.trimRight), t);
t.end();
});

26
node_modules/string.prototype.trimright/test/tests.js generated vendored Normal file
View File

@ -0,0 +1,26 @@
'use strict';
module.exports = function (trimRight, t) {
t.test('normal cases', function (st) {
st.equal(trimRight(' \t\na \t\n'), ' \t\na', 'strips whitespace off the left side');
st.equal(trimRight('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(trimRight(allWhitespaceChars + 'a' + allWhitespaceChars), allWhitespaceChars + 'a', '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(trimRight(mongolianVowelSeparator + 'a' + mongolianVowelSeparator), mongolianVowelSeparator + 'a', 'mongolian vowel separator is whitespace');
st.end();
});
t.test('zero-width spaces', function (st) {
var zeroWidth = '\u200b';
st.equal(trimRight(zeroWidth), zeroWidth, 'zero width space does not trim');
st.end();
});
};