Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

metric-lcs

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metric-lcs - npm Package Compare versions

Comparing version 1.0.1-rc to 1.0.2-rc

3

dist/index.d.ts

@@ -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;
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc