Socket
Socket
Sign inDemoInstall

distancesearch

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

distancesearch - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

.esmrc

2

ex/ex01-DistanceComparator-construction.js
"use strict";
const DistanceComparator = require("../distancecomparator.js");
import DistanceComparator from "../distancecomparator.js";

@@ -5,0 +5,0 @@ // First parameter must be views or no-views

"use strict";
const Celebs = require("../celebs.js");
import Celebs from "../node_modules/celebs/";

@@ -5,0 +5,0 @@ // Creating a new Celebs returns a promise wrapping the data set

"use strict";
const Celebs = require("../celebs.js");
import Celebs from "../node_modules/celebs/";

@@ -5,0 +5,0 @@ let celeb = new Celebs("views","all");

"use strict";
const Celebs = require("../celebs.js");
import Celebs from "../node_modules/celebs/";

@@ -5,0 +5,0 @@ // First parameter must be views or no-views

@@ -1,13 +0,15 @@

"use strict";
import fs from 'fs';
import path from 'path';
const fs = require("fs");
const path = require("path");
const basename = path.basename(module.filename);
// console.log(import.meta);
const basename = path.basename(import.meta.url);
const dirname = path.dirname(import.meta.url).split(path.sep).pop();
const alls = [];
fs.readdirSync(__dirname)
.filter(function(file) {
fs.readdirSync(dirname)
.filter(function (file) {
return (file.indexOf('.') !== 0) && (file !== basename) && (file.slice(-3) === '.js');
})
.forEach(function(file) {
require(`./${file}`);
.forEach(function (file) {
import(`./${file}`);
});
{
"name": "distancesearch",
"version": "0.0.2",
"version": "0.0.3",
"description": "A library to search through json objects using distance comparators like Dice Distance or the Levenshtein algorithm.",
"main": "distancesearch.js",
"scripts": {
"test": "mocha test --compilers js:babel-register --require babel-polyfill"
"test": "mocha test --compilers js:babel-register --require babel-polyfill",
"ex": "node -r @std/esm ex/intro-example",
"exAll": "node -r @std/esm ex/runAll"
},

@@ -33,2 +35,3 @@ "repository": {

"devDependencies": {
"@std/esm": "^0.20.0",
"babel-core": "^6.26.0",

@@ -35,0 +38,0 @@ "babel-loader": "^7.1.2",

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