Update checked-in dependencies
This commit is contained in:
parent
1afca056e3
commit
6989ba7bd2
3942 changed files with 55190 additions and 132206 deletions
1
node_modules/regexp.prototype.flags/.eslintrc
generated
vendored
1
node_modules/regexp.prototype.flags/.eslintrc
generated
vendored
|
|
@ -6,6 +6,7 @@
|
|||
"rules": {
|
||||
"eqeqeq": [2, "allow-null"],
|
||||
"id-length": 0,
|
||||
"no-invalid-this": "off",
|
||||
},
|
||||
|
||||
"overrides": [
|
||||
|
|
|
|||
21
node_modules/regexp.prototype.flags/CHANGELOG.md
generated
vendored
21
node_modules/regexp.prototype.flags/CHANGELOG.md
generated
vendored
|
|
@ -5,6 +5,27 @@ 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).
|
||||
|
||||
## [v1.5.2](https://github.com/es-shims/RegExp.prototype.flags/compare/v1.5.1...v1.5.2) - 2024-02-11
|
||||
|
||||
### Commits
|
||||
|
||||
- [Tests] increase coverage [`c692c88`](https://github.com/es-shims/RegExp.prototype.flags/commit/c692c88e073f6d17fc5b6b1c740ef1ecb433eb4b)
|
||||
- [Dev Deps] use `hasown` instead of `has` [`fb5b350`](https://github.com/es-shims/RegExp.prototype.flags/commit/fb5b350122507e4bec68fb417a46f07d062caf77)
|
||||
- [Dev Deps] update `aud`, `hasown`, `npmignore`, `tape` [`fd0ddd9`](https://github.com/es-shims/RegExp.prototype.flags/commit/fd0ddd9c837c0a8066de37a41eb4f83310f15a57)
|
||||
- [Deps] update `call-bind`, `define-properties`, `set-function-name` [`ca53f66`](https://github.com/es-shims/RegExp.prototype.flags/commit/ca53f662549b2fbff61323a6d2aa9af15a6c836b)
|
||||
- [Dev Deps] update `object-inspect`, `tape` [`4491680`](https://github.com/es-shims/RegExp.prototype.flags/commit/449168010d4d63a2cd854dcec9f37efacda19082)
|
||||
- [Refactor] use `es-errors` [`1d03d22`](https://github.com/es-shims/RegExp.prototype.flags/commit/1d03d225327008aeb6b4b501a4720318d717621e)
|
||||
- [Fix] properly check for a non-object receiver [`024d442`](https://github.com/es-shims/RegExp.prototype.flags/commit/024d4421edd8922f9acbac35afcfe69a8a3db6a9)
|
||||
- [Deps] update `call-bind` [`f222ce0`](https://github.com/es-shims/RegExp.prototype.flags/commit/f222ce0925a7431d1d3dd113d803746f07e1175d)
|
||||
|
||||
## [v1.5.1](https://github.com/es-shims/RegExp.prototype.flags/compare/v1.5.0...v1.5.1) - 2023-09-12
|
||||
|
||||
### Commits
|
||||
|
||||
- [Refactor] use `set-function-name` [`1384147`](https://github.com/es-shims/RegExp.prototype.flags/commit/13841474baf5700de8e3f65fae3670ad1b233483)
|
||||
- [Dev Deps] update `@es-shims/api`, `@ljharb/eslint-config`, `aud`, `available-regexp-flags`, `tape` [`07bf9a2`](https://github.com/es-shims/RegExp.prototype.flags/commit/07bf9a2c354cc41379b01fe5c383233adaaccf0e)
|
||||
- [Dev Deps] add missing `npmignore` dep [`8ca9dfe`](https://github.com/es-shims/RegExp.prototype.flags/commit/8ca9dfe4da31ef74ee48a4dcf62692eebb8f8fdd)
|
||||
|
||||
## [v1.5.0](https://github.com/es-shims/RegExp.prototype.flags/compare/v1.4.3...v1.5.0) - 2023-04-18
|
||||
|
||||
### Commits
|
||||
|
|
|
|||
13
node_modules/regexp.prototype.flags/implementation.js
generated
vendored
13
node_modules/regexp.prototype.flags/implementation.js
generated
vendored
|
|
@ -1,12 +1,12 @@
|
|||
'use strict';
|
||||
|
||||
var functionsHaveConfigurableNames = require('functions-have-names').functionsHaveConfigurableNames();
|
||||
var setFunctionName = require('set-function-name');
|
||||
var $TypeError = require('es-errors/type');
|
||||
|
||||
var $Object = Object;
|
||||
var $TypeError = TypeError;
|
||||
|
||||
module.exports = function flags() {
|
||||
if (this != null && this !== $Object(this)) {
|
||||
module.exports = setFunctionName(function flags() {
|
||||
if (this == null || this !== $Object(this)) {
|
||||
throw new $TypeError('RegExp.prototype.flags getter called on non-object');
|
||||
}
|
||||
var result = '';
|
||||
|
|
@ -35,8 +35,5 @@ module.exports = function flags() {
|
|||
result += 'y';
|
||||
}
|
||||
return result;
|
||||
};
|
||||
}, 'get flags', true);
|
||||
|
||||
if (functionsHaveConfigurableNames && Object.defineProperty) {
|
||||
Object.defineProperty(module.exports, 'name', { value: 'get flags' });
|
||||
}
|
||||
|
|
|
|||
28
node_modules/regexp.prototype.flags/package.json
generated
vendored
28
node_modules/regexp.prototype.flags/package.json
generated
vendored
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "regexp.prototype.flags",
|
||||
"version": "1.5.0",
|
||||
"version": "1.5.2",
|
||||
"author": "Jordan Harband <ljharb@gmail.com>",
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
|
|
@ -40,28 +40,30 @@
|
|||
"es-shim API"
|
||||
],
|
||||
"dependencies": {
|
||||
"call-bind": "^1.0.2",
|
||||
"define-properties": "^1.2.0",
|
||||
"functions-have-names": "^1.2.3"
|
||||
"call-bind": "^1.0.6",
|
||||
"define-properties": "^1.2.1",
|
||||
"es-errors": "^1.3.0",
|
||||
"set-function-name": "^2.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@es-shims/api": "^2.3.1",
|
||||
"@ljharb/eslint-config": "^21.0.1",
|
||||
"aud": "^2.0.2",
|
||||
"@es-shims/api": "^2.4.2",
|
||||
"@ljharb/eslint-config": "^21.1.0",
|
||||
"aud": "^2.0.4",
|
||||
"auto-changelog": "^2.4.0",
|
||||
"available-regexp-flags": "^1.0.1",
|
||||
"covert": "^1.1.1",
|
||||
"available-regexp-flags": "^1.0.2",
|
||||
"eclint": "^2.8.1",
|
||||
"es-value-fixtures": "^1.4.2",
|
||||
"eslint": "=8.8.0",
|
||||
"for-each": "^0.3.3",
|
||||
"has": "^1.0.3",
|
||||
"functions-have-names": "^1.2.3",
|
||||
"has-strict-mode": "^1.0.1",
|
||||
"hasown": "^2.0.1",
|
||||
"in-publish": "^2.0.1",
|
||||
"npmignore": "^0.3.0",
|
||||
"npmignore": "^0.3.1",
|
||||
"nyc": "^10.3.2",
|
||||
"object-inspect": "^1.12.3",
|
||||
"object-inspect": "^1.13.1",
|
||||
"safe-publish-latest": "^2.0.0",
|
||||
"tape": "^5.6.3"
|
||||
"tape": "^5.7.4"
|
||||
},
|
||||
"testling": {
|
||||
"files": "test/index.js",
|
||||
|
|
|
|||
26
node_modules/regexp.prototype.flags/test/tests.js
generated
vendored
26
node_modules/regexp.prototype.flags/test/tests.js
generated
vendored
|
|
@ -1,8 +1,9 @@
|
|||
'use strict';
|
||||
|
||||
var has = require('has');
|
||||
var hasOwn = require('hasown');
|
||||
var inspect = require('object-inspect');
|
||||
var supportsDescriptors = require('define-properties').supportsDescriptors;
|
||||
var v = require('es-value-fixtures');
|
||||
|
||||
var forEach = require('for-each');
|
||||
var availableFlags = require('available-regexp-flags');
|
||||
|
|
@ -19,6 +20,14 @@ var getRegexLiteral = function (stringRegex) {
|
|||
};
|
||||
|
||||
module.exports = function runTests(flags, t) {
|
||||
forEach(v.primitives, function (nonObject) {
|
||||
t['throws'](
|
||||
function () { flags(nonObject); },
|
||||
TypeError,
|
||||
'throws when called with a non-object receiver: ' + inspect(nonObject)
|
||||
);
|
||||
});
|
||||
|
||||
t.equal(flags(/a/g), 'g', 'flags(/a/g) !== "g"');
|
||||
t.equal(flags(/a/gmi), 'gim', 'flags(/a/gmi) !== "gim"');
|
||||
t.equal(flags(new RegExp('a', 'gmi')), 'gim', 'flags(new RegExp("a", "gmi")) !== "gim"');
|
||||
|
|
@ -38,13 +47,13 @@ module.exports = function runTests(flags, t) {
|
|||
st.equal(flags(/a/gim), 'gim', 'flags(/a/gim) !== "gim"');
|
||||
st.equal(flags(/a/mig), 'gim', 'flags(/a/mig) !== "gim"');
|
||||
st.equal(flags(/a/mgi), 'gim', 'flags(/a/mgi) !== "gim"');
|
||||
if (has(RegExp.prototype, 'sticky')) {
|
||||
if (hasOwn(RegExp.prototype, 'sticky')) {
|
||||
st.equal(flags(getRegexLiteral('/a/gyim')), 'gimy', 'flags(/a/gyim) !== "gimy"');
|
||||
}
|
||||
if (has(RegExp.prototype, 'unicode')) {
|
||||
if (hasOwn(RegExp.prototype, 'unicode')) {
|
||||
st.equal(flags(getRegexLiteral('/a/ugmi')), 'gimu', 'flags(/a/ugmi) !== "gimu"');
|
||||
}
|
||||
if (has(RegExp.prototype, 'dotAll')) {
|
||||
if (hasOwn(RegExp.prototype, 'dotAll')) {
|
||||
st.equal(flags(getRegexLiteral('/a/sgmi')), 'gims', 'flags(/a/sgmi) !== "gims"');
|
||||
}
|
||||
|
||||
|
|
@ -85,15 +94,6 @@ module.exports = function runTests(flags, t) {
|
|||
st.end();
|
||||
});
|
||||
|
||||
t.test('throws properly', function (st) {
|
||||
var nonObjects = ['', false, true, 42, NaN, null, undefined];
|
||||
st.plan(nonObjects.length);
|
||||
var throwsOnNonObject = function (nonObject) {
|
||||
st['throws'](flags.bind(null, nonObject), TypeError, inspect(nonObject) + ' is not an Object');
|
||||
};
|
||||
nonObjects.forEach(throwsOnNonObject);
|
||||
});
|
||||
|
||||
t.test('getters', { skip: !supportsDescriptors }, function (st) {
|
||||
/* eslint getter-return: 0 */
|
||||
var calls = '';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue