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

digx-nps

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

digx-nps - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

6

dist/index.d.ts

@@ -0,1 +1,2 @@

export default dig;
/**

@@ -11,6 +12,1 @@ * A dig function that takes any object with a nested structure and a path,

declare function dig(source: any, path: string, shouldThrow?: boolean): any;
declare const _default: {
dig: typeof dig;
validEmail: (email: string) => boolean;
};
export default _default;

@@ -0,1 +1,2 @@

export default dig;
/**

@@ -57,9 +58,1 @@ * A dig function that takes any object with a nested structure and a path,

}
const validEmail = (email) => {
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
return emailRegex.test(email);
};
export default {
dig,
validEmail,
};

2

package.json
{
"name": "digx-nps",
"version": "1.0.0",
"version": "1.0.1",
"description": "",

@@ -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