v2 new release (#77)

This commit is contained in:
github-actions[bot]
2022-06-27 14:12:49 -04:00
committed by GitHub
parent 217bf70cbd
commit 199ab446df
611 changed files with 8668 additions and 45625 deletions

View File

@ -16,4 +16,3 @@ export declare type Callbacks = {
};
declare const _default: (aLength: number, bLength: number, isCommon: IsCommon, foundSubsequence: FoundSubsequence) => void;
export default _default;
//# sourceMappingURL=index.d.ts.map

View File

@ -1 +0,0 @@
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AA+CH,aAAK,QAAQ,GAAG,CACd,MAAM,EAAE,MAAM,EAAE,qDAAqD;AACrE,MAAM,EAAE,MAAM,KACX,OAAO,CAAC;AAIb,aAAK,gBAAgB,GAAG,CACtB,OAAO,EAAE,MAAM,EAAE,iCAAiC;AAClD,OAAO,EAAE,MAAM,EAAE,uDAAuD;AACxE,OAAO,EAAE,MAAM,KACZ,IAAI,CAAC;AAGV,oBAAY,SAAS,GAAG;IACtB,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC;;AAwsBF,wBA0FE"}

View File

@ -688,10 +688,8 @@ const findSubsequences = (
};
const validateLength = (name, arg) => {
const type = typeof arg;
if (type !== 'number') {
throw new TypeError(`${pkg}: ${name} typeof ${type} is not a number`);
if (typeof arg !== 'number') {
throw new TypeError(`${pkg}: ${name} typeof ${typeof arg} is not a number`);
}
if (!Number.isSafeInteger(arg)) {

View File

@ -1,19 +0,0 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*/
declare type IsCommon = (aIndex: number, // caller can assume: 0 <= aIndex && aIndex < aLength
bIndex: number) => boolean;
declare type FoundSubsequence = (nCommon: number, // caller can assume: 0 < nCommon
aCommon: number, // caller can assume: 0 <= aCommon && aCommon < aLength
bCommon: number) => void;
export declare type Callbacks = {
foundSubsequence: FoundSubsequence;
isCommon: IsCommon;
};
declare const _default: (aLength: number, bLength: number, isCommon: IsCommon, foundSubsequence: FoundSubsequence) => void;
export default _default;
//# sourceMappingURL=index.d.ts.map

View File

@ -1,6 +1,6 @@
{
"name": "diff-sequences",
"version": "25.2.6",
"version": "26.6.2",
"repository": {
"type": "git",
"url": "https://github.com/facebook/jest.git",
@ -16,27 +16,20 @@
"diff"
],
"engines": {
"node": ">= 8.3"
"node": ">= 10.14.2"
},
"main": "build/index.js",
"types": "build/index.d.ts",
"typesVersions": {
"<3.8": {
"build/*": [
"build/ts3.4/*"
]
}
},
"scripts": {
"perf": "node --expose-gc perf/index.js"
},
"devDependencies": {
"benchmark": "^2.1.4",
"diff": "^4.0.1",
"fast-check": "^1.13.0"
"fast-check": "^2.0.0"
},
"publishConfig": {
"access": "public"
},
"gitHead": "43207b743df164e9e58bd483dd9167b9084da18b"
"gitHead": "4c46930615602cbf983fb7e8e82884c282a624d5"
}

View File

@ -16,7 +16,6 @@
/* eslint import/no-extraneous-dependencies: "off" */
const Benchmark = require('benchmark');
const diffBaseline = require('diff').diffLines;
const diffImproved = require('../build/index.js').default;