This commit is contained in:
hatuhn
2019-09-13 09:45:04 +07:00
parent f14a34ba19
commit 558fb07261
16790 changed files with 0 additions and 1642370 deletions

3
node_modules/uniqs/.travis.yml generated vendored
View File

@@ -1,3 +0,0 @@
language: node_js
node_js:
- 0.10

55
node_modules/uniqs/README.md generated vendored
View File

@@ -1,55 +0,0 @@
[![Build Status](https://travis-ci.org/fgnass/uniqs.svg?branch=master)](https://travis-ci.org/fgnass/uniqs)
### Tiny utility to create unions and de-duplicated lists.
Example:
```js
var uniqs = require('uniqs');
var foo = { foo: 23 };
var list = [3, 2, 2, 1, foo, foo];
uniqs(list);
// => [3, 2, 1, { foo: 23 }]
```
You can pass multiple lists to create a union:
```js
uniqs([2, 1, 1], [2, 3, 3, 4], [4, 3, 2]);
// => [2, 1, 3, 4]
```
Passing individual items works too:
```js
uniqs(3, 2, 2, [1, 1, 2]);
// => [3, 2, 1]
```
### Summary
* Uniqueness is defined based on strict object equality.
* The lists do not need to be sorted.
* The resulting array contains the items in the order of their first appearance.
### About
This package has been written to accompany utilities like
[flatten](https://npmjs.org/package/flatten) as alternative to full-blown
libraries like underscore or lodash.
The implementation is optimized for simplicity rather than performance and
looks like this:
```js
module.exports = function uniqs() {
var list = Array.prototype.concat.apply([], arguments);
return list.filter(function(item, i) {
return i == list.indexOf(item);
});
};
```
### License
MIT

6
node_modules/uniqs/index.js generated vendored
View File

@@ -1,6 +0,0 @@
module.exports = function uniqs() {
var list = Array.prototype.concat.apply([], arguments);
return list.filter(function(item, i) {
return i == list.indexOf(item);
});
};

56
node_modules/uniqs/package.json generated vendored
View File

@@ -1,56 +0,0 @@
{
"_from": "uniqs@^2.0.0",
"_id": "uniqs@2.0.0",
"_inBundle": false,
"_integrity": "sha1-/+3ks2slKQaW5uFl1KWe25mOawI=",
"_location": "/uniqs",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "uniqs@^2.0.0",
"name": "uniqs",
"escapedName": "uniqs",
"rawSpec": "^2.0.0",
"saveSpec": null,
"fetchSpec": "^2.0.0"
},
"_requiredBy": [
"/postcss-discard-unused",
"/postcss-minify-params",
"/postcss-unique-selectors",
"/postcss-zindex"
],
"_resolved": "https://registry.npmjs.org/uniqs/-/uniqs-2.0.0.tgz",
"_shasum": "ffede4b36b25290696e6e165d4a59edb998e6b02",
"_spec": "uniqs@^2.0.0",
"_where": "/Applications/XAMPP/xamppfiles/htdocs/wordpress/t-latehome/wp-content/plugins/opal-estate-pro/node_modules/postcss-discard-unused",
"author": {
"name": "Felix Gnass",
"email": "fgnass@gmail.com"
},
"bugs": {
"url": "https://github.com/fgnass/uniqs/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "Tiny utility to create unions and de-duplicated lists",
"homepage": "https://github.com/fgnass/uniqs#readme",
"keywords": [
"unique",
"uniq",
"dedupe",
"union"
],
"license": "MIT",
"main": "index.js",
"name": "uniqs",
"repository": {
"type": "git",
"url": "git://github.com/fgnass/uniqs.git"
},
"scripts": {
"test": "node test"
},
"version": "2.0.0"
}

22
node_modules/uniqs/test.js generated vendored
View File

@@ -1,22 +0,0 @@
var uniqs = require('./');
var util = require('util');
var assert = require('assert');
var foo = { foo: 23 };
[
[ [[2, 1, 1], [2, 3, 3, 4], [4, 3, 2]], [2, 1, 3, 4] ],
[ [3, 2, 2, [1, 1, 2]], [3, 2, 1] ],
[ [[2, 2, 3, "a", 3, 1, foo, foo, "a" ]], [ 2, 3, "a", 1, foo ] ],
[ [23], [23] ],
[ [], [] ],
[ [[]], [] ],
[ [[null], null], [null] ]
]
.forEach(function(t) {
var args = t[0].map(JSON.stringify);
assert.deepEqual(uniqs.apply(this, t[0]), t[1],
util.format('✘ uniqs(%s) !== %j', args, t[1])
);
console.log('✔ uniqs(%s) == %j', args, t[1]);
});