mirror of
https://github.com/musix-org/musix-oss
synced 2025-08-01 14:34:35 +00:00
Modules
This commit is contained in:
15
node_modules/is-map/.eslintrc
generated
vendored
Normal file
15
node_modules/is-map/.eslintrc
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"root": true,
|
||||
|
||||
"extends": "@ljharb",
|
||||
|
||||
"overrides": [
|
||||
{
|
||||
"files": "test/**",
|
||||
"globals": {
|
||||
"WeakMap": false,
|
||||
"WeakSet": false,
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
12
node_modules/is-map/.github/FUNDING.yml
generated
vendored
Normal file
12
node_modules/is-map/.github/FUNDING.yml
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
# These are supported funding model platforms
|
||||
|
||||
github: [ljharb]
|
||||
patreon: # Replace with a single Patreon username
|
||||
open_collective: # Replace with a single Open Collective username
|
||||
ko_fi: # Replace with a single Ko-fi username
|
||||
tidelift: npm/is-map
|
||||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
||||
liberapay: # Replace with a single Liberapay username
|
||||
issuehunt: # Replace with a single IssueHunt username
|
||||
otechie: # Replace with a single Otechie username
|
||||
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
15
node_modules/is-map/.github/workflows/rebase.yml
generated
vendored
Normal file
15
node_modules/is-map/.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 }}
|
8
node_modules/is-map/.travis.yml
generated
vendored
Normal file
8
node_modules/is-map/.travis.yml
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
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
|
35
node_modules/is-map/CHANGELOG.md
generated
vendored
Normal file
35
node_modules/is-map/CHANGELOG.md
generated
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
# 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).
|
||||
|
||||
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
||||
|
||||
## [v2.0.1](https://github.com/inspect-js/is-map/compare/v2.0.0...v2.0.1) - 2019-12-17
|
||||
|
||||
### Fixed
|
||||
|
||||
- [Refactor] avoid top-level return, because babel and webpack are broken [`#5`](https://github.com/inspect-js/is-map/issues/5) [`#4`](https://github.com/inspect-js/is-map/issues/4) [`#3`](https://github.com/inspect-js/is-map/issues/3) [`#78`](https://github.com/inspect-js/node-deep-equal/issues/78) [`#7`](https://github.com/es-shims/Promise.allSettled/issues/7) [`#12`](https://github.com/airbnb/js-shims/issues/12)
|
||||
|
||||
### Commits
|
||||
|
||||
- [actions] add automatic rebasing / merge commit blocking [`743f29f`](https://github.com/inspect-js/is-map/commit/743f29fc527b4a8a56a7045ad3d56ecfc798b1a3)
|
||||
- [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `tape` [`8ced854`](https://github.com/inspect-js/is-map/commit/8ced854c842c86cb126b86618cb4f90ef6a04f2b)
|
||||
|
||||
## v2.0.0 - 2019-11-12
|
||||
|
||||
### Commits
|
||||
|
||||
- Initial commit [`38592bc`](https://github.com/inspect-js/is-map/commit/38592bcb928d97b244cca6cee91142a44bcf5ab1)
|
||||
- Tests [`ca54632`](https://github.com/inspect-js/is-map/commit/ca546326943385052e8b5a04377f1f8b110b7306)
|
||||
- readme [`9ad8bb6`](https://github.com/inspect-js/is-map/commit/9ad8bb6bc2fb295ada21e1cd901c89aa55acad37)
|
||||
- implementation [`03e1dbc`](https://github.com/inspect-js/is-map/commit/03e1dbc64eb09e6caba919c9ae5662992f0a9b52)
|
||||
- npm init [`d05ce8b`](https://github.com/inspect-js/is-map/commit/d05ce8b0ad797c97ed23a7730a9e211e5fe0fe92)
|
||||
- [meta] add `funding` field; create `FUNDING.yml` [`2d56b4e`](https://github.com/inspect-js/is-map/commit/2d56b4e2a44e6eb4557d9d192a863c92b68c6597)
|
||||
- [meta] add `safe-publish-latest`, `auto-changelog` [`2ebecb5`](https://github.com/inspect-js/is-map/commit/2ebecb5a3fe5fa682d5d04d1cd87f4d88ba22ec9)
|
||||
- [Tests] add `npm run lint` [`ddc3e32`](https://github.com/inspect-js/is-map/commit/ddc3e320c3d181b9111dd3a86df486604710e08c)
|
||||
- [Tests] use shared travis-ci configs [`69f6d9c`](https://github.com/inspect-js/is-map/commit/69f6d9c52a06dda27419eb41572b8db6009f6d49)
|
||||
- Only apps should have lockfiles [`408cccd`](https://github.com/inspect-js/is-map/commit/408cccdc824c017547573d816b2201e9cfb9a292)
|
||||
- [Tests] add `npx aud` in `posttest` [`5eadb02`](https://github.com/inspect-js/is-map/commit/5eadb02075754732df3532bc2e98ca6307c46537)
|
21
node_modules/is-map/LICENSE
generated
vendored
Normal file
21
node_modules/is-map/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2019 Inspect JS
|
||||
|
||||
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.
|
49
node_modules/is-map/README.md
generated
vendored
Normal file
49
node_modules/is-map/README.md
generated
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
# is-map <sup>[![Version Badge][2]][1]</sup>
|
||||
|
||||
[![Build Status][3]][4]
|
||||
[![dependency status][5]][6]
|
||||
[![dev dependency status][7]][8]
|
||||
[![License][license-image]][license-url]
|
||||
[![Downloads][downloads-image]][downloads-url]
|
||||
|
||||
[![npm badge][11]][1]
|
||||
|
||||
Is this value a JS Map? This module works cross-realm/iframe, and despite ES6 @@toStringTag.
|
||||
|
||||
## Example
|
||||
|
||||
```js
|
||||
var isMap = require('is-map');
|
||||
assert(!isMap(function () {}));
|
||||
assert(!isMap(null));
|
||||
assert(!isMap(function* () { yield 42; return Infinity; });
|
||||
assert(!isMap(Symbol('foo')));
|
||||
assert(!isMap(1n));
|
||||
assert(!isMap(Object(1n)));
|
||||
|
||||
assert(!isMap(new Set()));
|
||||
assert(!isMap(new WeakSet()));
|
||||
assert(!isMap(new WeakMap()));
|
||||
|
||||
assert(isMap(new Map()));
|
||||
|
||||
class MyMap extends Map {}
|
||||
assert(isMap(new MyMap()));
|
||||
```
|
||||
|
||||
## Tests
|
||||
Simply clone the repo, `npm install`, and run `npm test`
|
||||
|
||||
[1]: https://npmjs.org/package/is-map
|
||||
[2]: http://versionbadg.es/inspect-js/is-map.svg
|
||||
[3]: https://travis-ci.org/inspect-js/is-map.svg
|
||||
[4]: https://travis-ci.org/inspect-js/is-map
|
||||
[5]: https://david-dm.org/inspect-js/is-map.svg
|
||||
[6]: https://david-dm.org/inspect-js/is-map
|
||||
[7]: https://david-dm.org/inspect-js/is-map/dev-status.svg
|
||||
[8]: https://david-dm.org/inspect-js/is-map#info=devDependencies
|
||||
[11]: https://nodei.co/npm/is-map.png?downloads=true&stars=true
|
||||
[license-image]: http://img.shields.io/npm/l/is-map.svg
|
||||
[license-url]: LICENSE
|
||||
[downloads-image]: http://img.shields.io/npm/dm/is-map.svg
|
||||
[downloads-url]: http://npm-stat.com/charts.html?package=is-map
|
42
node_modules/is-map/index.js
generated
vendored
Normal file
42
node_modules/is-map/index.js
generated
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
'use strict';
|
||||
|
||||
var $Map = typeof Map === 'function' && Map.prototype ? Map : null;
|
||||
var $Set = typeof Set === 'function' && Set.prototype ? Set : null;
|
||||
|
||||
var exported;
|
||||
|
||||
if (!$Map) {
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
exported = function isMap(x) {
|
||||
// `Map` is not present in this environment.
|
||||
return false;
|
||||
};
|
||||
}
|
||||
|
||||
var $mapHas = $Map ? Map.prototype.has : null;
|
||||
var $setHas = $Set ? Set.prototype.has : null;
|
||||
if (!exported && !$mapHas) {
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
exported = function isMap(x) {
|
||||
// `Map` does not have a `has` method
|
||||
return false;
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = exported || function isMap(x) {
|
||||
if (!x || typeof x !== 'object') {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
$mapHas.call(x);
|
||||
if ($setHas) {
|
||||
try {
|
||||
$setHas.call(x);
|
||||
} catch (e) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return x instanceof $Map; // core-js workaround, pre-v2.5.0
|
||||
} catch (e) {}
|
||||
return false;
|
||||
};
|
84
node_modules/is-map/package.json
generated
vendored
Normal file
84
node_modules/is-map/package.json
generated
vendored
Normal file
@@ -0,0 +1,84 @@
|
||||
{
|
||||
"_from": "is-map@^2.0.0",
|
||||
"_id": "is-map@2.0.1",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-T/S49scO8plUiAOA2DBTBG3JHpn1yiw0kRp6dgiZ0v2/6twi5eiB0rHtHFH9ZIrvlWc6+4O+m4zg5+Z833aXgw==",
|
||||
"_location": "/is-map",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "is-map@^2.0.0",
|
||||
"name": "is-map",
|
||||
"escapedName": "is-map",
|
||||
"rawSpec": "^2.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^2.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/es-get-iterator",
|
||||
"/which-collection"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/is-map/-/is-map-2.0.1.tgz",
|
||||
"_shasum": "520dafc4307bb8ebc33b813de5ce7c9400d644a1",
|
||||
"_spec": "is-map@^2.0.0",
|
||||
"_where": "C:\\Users\\matia\\Documents\\GitHub\\Musix\\node_modules\\es-get-iterator",
|
||||
"author": {
|
||||
"name": "Jordan Harband",
|
||||
"email": "ljharb@gmail.com"
|
||||
},
|
||||
"auto-changelog": {
|
||||
"output": "CHANGELOG.md",
|
||||
"template": "keepachangelog",
|
||||
"unreleased": false,
|
||||
"commitLimit": false,
|
||||
"backfillLimit": false
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/inspect-js/is-map/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"description": "Is this value a JS Map? This module works cross-realm/iframe, and despite ES6 @@toStringTag.",
|
||||
"devDependencies": {
|
||||
"@ljharb/eslint-config": "^15.0.2",
|
||||
"auto-changelog": "^1.16.2",
|
||||
"es5-shim": "^4.5.13",
|
||||
"es6-shim": "^0.35.5",
|
||||
"eslint": "^6.7.2",
|
||||
"for-each": "^0.3.3",
|
||||
"object-inspect": "^1.7.0",
|
||||
"safe-publish-latest": "^1.1.4",
|
||||
"tape": "^4.12.0"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/ljharb"
|
||||
},
|
||||
"homepage": "https://github.com/inspect-js/is-map#readme",
|
||||
"keywords": [
|
||||
"map",
|
||||
"set",
|
||||
"collection",
|
||||
"is",
|
||||
"robust"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "index.js",
|
||||
"name": "is-map",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/inspect-js/is-map.git"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "eslint .",
|
||||
"posttest": "npx aud",
|
||||
"posttests-only": "node -e \"require('es5-shim'); require('es6-shim'); require('./test');\"",
|
||||
"postversion": "auto-changelog && git add CHANGELOG.md && git commit --no-edit --amend && git tag -f \"v$(node -e \"console.log(require('./package.json').version)\")\"",
|
||||
"prepublish": "safe-publish-latest",
|
||||
"pretest": "npm run lint",
|
||||
"test": "npm run tests-only",
|
||||
"tests-only": "node test",
|
||||
"version": "auto-changelog && git add CHANGELOG.md"
|
||||
},
|
||||
"version": "2.0.1"
|
||||
}
|
59
node_modules/is-map/test/index.js
generated
vendored
Normal file
59
node_modules/is-map/test/index.js
generated
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
'use strict';
|
||||
|
||||
var test = require('tape');
|
||||
var debug = require('object-inspect');
|
||||
var forEach = require('for-each');
|
||||
|
||||
var isMap = require('..');
|
||||
|
||||
test('non-collections', function (t) {
|
||||
forEach([
|
||||
null,
|
||||
undefined,
|
||||
true,
|
||||
false,
|
||||
42,
|
||||
0,
|
||||
-0,
|
||||
NaN,
|
||||
Infinity,
|
||||
'',
|
||||
'foo',
|
||||
/a/g,
|
||||
[],
|
||||
{},
|
||||
function () {}
|
||||
], function (nonCollection) {
|
||||
t.equal(isMap(nonCollection), false, debug(nonCollection) + ' is not a Map');
|
||||
});
|
||||
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('Maps', { skip: typeof Map !== 'function' }, function (t) {
|
||||
var m = new Map();
|
||||
t.equal(isMap(m), true, debug(m) + ' is a Map');
|
||||
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('Sets', { skip: typeof Set !== 'function' }, function (t) {
|
||||
var s = new Set();
|
||||
t.equal(isMap(s), false, debug(s) + ' is not a Map');
|
||||
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('WeakMaps', { skip: typeof WeakMap !== 'function' }, function (t) {
|
||||
var wm = new WeakMap();
|
||||
t.equal(isMap(wm), false, debug(wm) + ' is not a Map');
|
||||
|
||||
t.end();
|
||||
});
|
||||
|
||||
test('WeakSets', { skip: typeof WeakSet !== 'function' }, function (t) {
|
||||
var ws = new WeakSet();
|
||||
t.equal(isMap(ws), false, debug(ws) + ' is not a Map');
|
||||
|
||||
t.end();
|
||||
});
|
Reference in New Issue
Block a user