Comparing version 1.0.1-rc to 1.0.2-rc
@@ -8,3 +8,2 @@ /** | ||
*/ | ||
declare function metriclcs(s1: string, s2: string): number; | ||
export default metriclcs; | ||
export default function metriclcs(s1: string, s2: string): number; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.default = metriclcs; | ||
/** | ||
@@ -43,2 +44,2 @@ * Return the length of Longest Common Subsequence (LCS) between strings s1 | ||
} | ||
exports.default = metriclcs; | ||
module.exports = metriclcs; |
{ | ||
"name": "metric-lcs", | ||
"version": "1.0.1-rc", | ||
"version": "1.0.2-rc", | ||
"description": "Zero dependency Metric Longest Common Subsequence implementation in js", | ||
@@ -8,3 +8,4 @@ "main": "./dist/index.js", | ||
"scripts": { | ||
"test": "ts-node test.ts", | ||
"stage": "npm run build && node ./staging.js && node staging.mjs && ts-node staging.ts", | ||
"test": "npm run stage && ts-node test.ts", | ||
"build": "tsc" | ||
@@ -11,0 +12,0 @@ }, |
@@ -33,3 +33,3 @@ /** | ||
*/ | ||
function metriclcs(s1: string, s2: string) { | ||
export default function metriclcs(s1: string, s2: string) { | ||
if (typeof s1 !== "string" || typeof s1 !== "string") return NaN; | ||
@@ -43,2 +43,2 @@ if (s1 === s2) return 1; | ||
export default metriclcs; | ||
module.exports = metriclcs; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
6651
0