push all website files

This commit is contained in:
Jacob Levine
2019-01-06 13:14:45 -06:00
parent d7301e26c3
commit d2d5d4c04e
15662 changed files with 2166516 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
### [1.2.2](https://github.com/twada/universal-deep-strict-equal/releases/tag/v1.2.2) (2016-07-11)
* [Sync with Node v6.3.0](https://github.com/twada/universal-deep-strict-equal/pull/9)
### [1.2.1](https://github.com/twada/universal-deep-strict-equal/releases/tag/v1.2.1) (2016-05-06)
#### Bug Fixes
* [Dealing with old IE that doesn't have Arguments](https://github.com/twada/universal-deep-strict-equal/pull/7)
## [1.2.0](https://github.com/twada/universal-deep-strict-equal/releases/tag/v1.2.0) (2016-05-06)
#### Features
* [Allow circular references](https://github.com/twada/universal-deep-strict-equal/pull/4) by [@azu](https://github.com/azu)
## [1.1.0](https://github.com/twada/universal-deep-strict-equal/releases/tag/v1.1.0) (2016-05-06)
#### Features
* [Support old browsers](https://github.com/twada/universal-deep-strict-equal/pull/2)
## [1.0.0](https://github.com/twada/universal-deep-strict-equal/releases/tag/v1.0.0) (2016-05-04)
#### Features
* the first stable release
## [0.1.0](https://github.com/twada/universal-deep-strict-equal/releases/tag/v0.1.0) (2016-05-03)
#### Features
* initial release

View File

@@ -0,0 +1,66 @@
universal-deep-strict-equal
================================
A port of [Node v6's internal _deepEqual function](https://github.com/nodejs/node/blob/v6.3.0/lib/assert.js#L145) in a universal style.
[![Build Status][travis-image]][travis-url]
[![NPM version][npm-image]][npm-url]
[![License][license-image]][license-url]
[![Sauce Test Status][saucelabs-image]][saucelabs-url]
*Issues and improvements should be done in [Node.js](https://github.com/nodejs/node/issues) first.*
API
---------------------------------------
`deepEqual(actual, expected, [strict])`
USAGE
---------------------------------------
```javascript
var deepEqual = require('universal-deep-strict-equal');
deepEqual({a:1}, {a:'1'}); // => true
deepEqual({a:1}, {a:'1'}, false); // => true
deepEqual({a:1}, {a:'1'}, true); // => false
```
INSTALL
---------------------------------------
```
npm install universal-deep-strict-equal
```
AUTHOR
---------------------------------------
* [Takuto Wada](https://github.com/twada)
CONTRIBUTORS
---------------------------------------
* [azu](https://github.com/azu)
LICENSE
---------------------------------------
Licensed under the [MIT](http://twada.mit-license.org/) license.
[travis-url]: https://travis-ci.org/twada/universal-deep-strict-equal
[travis-image]: https://secure.travis-ci.org/twada/universal-deep-strict-equal.svg?branch=master
[npm-url]: https://npmjs.org/package/universal-deep-strict-equal
[npm-image]: https://badge.fury.io/js/universal-deep-strict-equal.svg
[license-url]: http://twada.mit-license.org/
[license-image]: https://img.shields.io/badge/license-MIT-brightgreen.svg
[saucelabs-url]: https://saucelabs.com/u/udse
[saucelabs-image]: https://saucelabs.com/browser-matrix/udse.svg

View File

@@ -0,0 +1,232 @@
// port of https://github.com/nodejs/node/blob/v6.3.0/lib/assert.js#L145-L248
// http://wiki.commonjs.org/wiki/Unit_Testing/1.0
//
// Originally from narwhal.js (http://narwhaljs.org)
// Copyright (c) 2009 Thomas Robinson <280north.com>
//
// 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 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.
'use strict';
var Buffer = require('buffer').Buffer;
var compare = Buffer.compare;
var indexOf = require('indexof');
var filter = require('array-filter');
var getPrototypeOf = Object.getPrototypeOf || function(obj) {
return obj.__proto__ || (
obj.constructor
? obj.constructor.prototype
: Object.prototype
);
};
function isEnumerable(obj, key) {
return Object.prototype.propertyIsEnumerable.call(obj, key);
};
function pToString(obj) {
return Object.prototype.toString.call(obj);
};
function isPrimitive(arg) {
return arg === null ||
typeof arg === 'boolean' ||
typeof arg === 'number' ||
typeof arg === 'string' ||
typeof arg === 'symbol' || // ES6 symbol
typeof arg === 'undefined';
}
function isObject(arg) {
return typeof arg === 'object' && arg !== null;
}
function isDate(d) {
return isObject(d) && pToString(d) === '[object Date]';
}
function isRegExp(re) {
return isObject(re) && pToString(re) === '[object RegExp]';
}
var isArguments = (function () {
function isArg(obj) {
return isObject(obj) && pToString(obj) == '[object Arguments]';
}
// dealing with old IEs (There's no Arguments type)
if (!isArg(arguments)) {
return function(obj) {
return isObject(obj) &&
typeof obj.length === 'number' &&
obj.length >= 0 &&
pToString(obj) !== '[object Array]' &&
pToString(obj.callee) === '[object Function]';
};
} else {
return isArg;
}
})();
function fromBufferSupport() {
try {
return typeof Buffer.from === 'function' && !!Buffer.from([0x62,0x75,0x66,0x66,0x65,0x72]);
} catch (e) {
// Buffer.from under Node 4.x causes `TypeError: this is not a typed array.`
return false;
}
}
var toBuffer = (function () {
// check whether Buffer constructor accepts ArrayBuffer or not
function isBufferConstructorAcceptsArrayBuffer() {
try {
return typeof Uint8Array === 'function' && (new Buffer(new Uint8Array([1]).buffer)[0] === 1);
} catch (e) {
return false;
}
}
if (isBufferConstructorAcceptsArrayBuffer()) {
// Node 4.x
return function (ab) {
return new Buffer(ab);
};
} else {
// Node 0.10.x and 0.12.x
return function (ab) {
var buffer = new Buffer(ab.byteLength);
var view = new Uint8Array(ab);
for (var i = 0; i < buffer.length; ++i) {
buffer[i] = view[i];
}
return buffer;
};
}
})();
var bufferFrom = fromBufferSupport() ? Buffer.from : toBuffer;
var objectKeys = (function () {
var OLD_V8_ARRAY_BUFFER_ENUM = ['BYTES_PER_ELEMENT','get','set','slice','subarray','buffer','length','byteOffset','byteLength'];
var keys = Object.keys || require('object-keys');
return function objectKeys(obj) {
// avoid iterating enumerable properties of ArrayBuffer under old V8
if (isEnumerable(obj, 'buffer') &&
isEnumerable(obj, 'byteOffset') &&
isEnumerable(obj, 'byteLength')) {
return filter(keys(obj), function (k) {
return indexOf(OLD_V8_ARRAY_BUFFER_ENUM, k) === -1;
});
} else {
return keys(obj);
}
};
})();
function _deepEqual(actual, expected, strict, memos) {
// 7.1. All identical values are equivalent, as determined by ===.
if (actual === expected) {
return true;
} else if (actual instanceof Buffer && expected instanceof Buffer) {
return compare(actual, expected) === 0;
// 7.2. If the expected value is a Date object, the actual value is
// equivalent if it is also a Date object that refers to the same time.
} else if (isDate(actual) && isDate(expected)) {
return actual.getTime() === expected.getTime();
// 7.3 If the expected value is a RegExp object, the actual value is
// equivalent if it is also a RegExp object with the same source and
// properties (`global`, `multiline`, `lastIndex`, `ignoreCase`).
} else if (isRegExp(actual) && isRegExp(expected)) {
return actual.source === expected.source &&
actual.global === expected.global &&
actual.multiline === expected.multiline &&
actual.lastIndex === expected.lastIndex &&
actual.ignoreCase === expected.ignoreCase;
// 7.4. Other pairs that do not both pass typeof value == 'object',
// equivalence is determined by ==.
} else if ((actual === null || typeof actual !== 'object') &&
(expected === null || typeof expected !== 'object')) {
return strict ? actual === expected : actual == expected;
// If both values are instances of typed arrays, wrap their underlying
// ArrayBuffers in a Buffer each to increase performance
// This optimization requires the arrays to have the same type as checked by
// Object.prototype.toString (aka pToString). Never perform binary
// comparisons for Float*Arrays, though, since e.g. +0 === -0 but their
// bit patterns are not identical.
} else if (typeof ArrayBuffer === 'function' && typeof ArrayBuffer.isView === 'function' &&
ArrayBuffer.isView(actual) && ArrayBuffer.isView(expected) &&
pToString(actual) === pToString(expected) &&
!(actual instanceof Float32Array ||
actual instanceof Float64Array)) {
return compare(bufferFrom(actual.buffer),
bufferFrom(expected.buffer)) === 0;
// 7.5 For all other Object pairs, including Array objects, equivalence is
// determined by having the same number of owned properties (as verified
// with Object.prototype.hasOwnProperty.call), the same set of keys
// (although not necessarily the same order), equivalent values for every
// corresponding key, and an identical 'prototype' property. Note: this
// accounts for both named and indexed properties on Arrays.
} else {
memos = memos || {actual: [], expected: []};
var actualIndex = indexOf(memos.actual, actual);
if (actualIndex !== -1) {
if (actualIndex === indexOf(memos.expected, expected)) {
return true;
}
}
memos.actual.push(actual);
memos.expected.push(expected);
return objEquiv(actual, expected, strict, memos);
}
}
function objEquiv(a, b, strict, actualVisitedObjects) {
if (a === null || a === undefined || b === null || b === undefined)
return false;
// if one is a primitive, the other must be same
if (isPrimitive(a) || isPrimitive(b))
return a === b;
if (strict && getPrototypeOf(a) !== getPrototypeOf(b))
return false;
var aIsArgs = isArguments(a),
bIsArgs = isArguments(b);
if ((aIsArgs && !bIsArgs) || (!aIsArgs && bIsArgs))
return false;
var ka = objectKeys(a),
kb = objectKeys(b),
key, i;
// having the same number of owned properties (keys incorporates
// hasOwnProperty)
if (ka.length != kb.length)
return false;
//the same set of keys (although not necessarily the same order),
ka.sort();
kb.sort();
//~~~cheap key test
for (i = ka.length - 1; i >= 0; i--) {
if (ka[i] != kb[i])
return false;
}
//equivalent values for every corresponding key, and
//~~~possibly expensive deep test
for (i = ka.length - 1; i >= 0; i--) {
key = ka[i];
if (!_deepEqual(a[key], b[key], strict, actualVisitedObjects))
return false;
}
return true;
}
module.exports = _deepEqual;

View File

@@ -0,0 +1,88 @@
{
"_from": "universal-deep-strict-equal@^1.2.1",
"_id": "universal-deep-strict-equal@1.2.2",
"_inBundle": false,
"_integrity": "sha1-DaSsL3PP95JMgfpN4BjKViyisKc=",
"_location": "/universal-deep-strict-equal",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "universal-deep-strict-equal@^1.2.1",
"name": "universal-deep-strict-equal",
"escapedName": "universal-deep-strict-equal",
"rawSpec": "^1.2.1",
"saveSpec": null,
"fetchSpec": "^1.2.1"
},
"_requiredBy": [
"/power-assert"
],
"_resolved": "https://registry.npmjs.org/universal-deep-strict-equal/-/universal-deep-strict-equal-1.2.2.tgz",
"_shasum": "0da4ac2f73cff7924c81fa4de018ca562ca2b0a7",
"_spec": "universal-deep-strict-equal@^1.2.1",
"_where": "C:\\Users\\jlevi\\Downloads\\tr2022-strategy-master\\tr2022-strategy-master\\data analysis\\functions\\node_modules\\power-assert",
"author": {
"name": "Takuto Wada",
"email": "takuto.wada@gmail.com",
"url": "https://github.com/twada"
},
"bugs": {
"url": "https://github.com/twada/universal-deep-strict-equal/issues"
},
"bundleDependencies": false,
"contributors": [
{
"name": "azu",
"url": "https://github.com/azu"
}
],
"dependencies": {
"array-filter": "^1.0.0",
"indexof": "0.0.1",
"object-keys": "^1.0.0"
},
"deprecated": false,
"description": "A port of Node v6's internal _deepEqual function in a universal style",
"devDependencies": {
"graceful-fs": "^4.1.3",
"mocha": "^2.4.5",
"zuul": "^3.10.1"
},
"files": [
"README.md",
"CHANGELOG.md",
"index.js",
"package.json"
],
"homepage": "https://github.com/twada/universal-deep-strict-equal",
"keywords": [
"assert",
"assertion",
"builtin",
"core",
"deep",
"deep-equal",
"deep-strict-equal",
"eq",
"equal",
"equality",
"same",
"strict",
"test",
"testing"
],
"license": "MIT",
"main": "index.js",
"name": "universal-deep-strict-equal",
"repository": {
"type": "git",
"url": "git://github.com/twada/universal-deep-strict-equal.git"
},
"scripts": {
"test": "mocha test/test-*.js",
"test-saucelabs": "zuul -- test/test-*.js",
"zuul-local": "zuul --local 8080 --ui mocha-bdd -- test/test-*.js"
},
"version": "1.2.2"
}