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

tiny-fsearch

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tiny-fsearch - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

10

index.js

@@ -12,2 +12,5 @@ // Core Binding Implementation

/// RegExp verifier function.
const assertRegExpString = (input) => new RegExp(input);
const fsearch = (searchable, files, opts = {}) => {

@@ -21,2 +24,5 @@ if (searchable instanceof RegExp) {

// if an error occurs creating the RegExp object, then is emitted
if (opts.isRegex) assertRegExpString(searchable);
opts = Object.assign(_defaultOptions, opts, { input: searchable });

@@ -34,2 +40,6 @@ return _binding_raw._fsearch_impl(files, opts);

// if an error occurs creating the RegExp object, then is emitted
if (opts.isRegex) assertRegExpString(searchable);
opts = Object.assign(_defaultOptions, opts, { input: searchable });

@@ -36,0 +46,0 @@ return _binding_raw._fquery_impl(source, opts);

2

package.json
{
"name": "tiny-fsearch",
"version": "1.0.1",
"version": "1.1.0",
"description": "A small and versatile find-in-file/source library.",

@@ -5,0 +5,0 @@ "main": "index.js",

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