New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@transferwise/neptune-validation

Package Overview
Dependencies
Maintainers
3
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@transferwise/neptune-validation - npm Package Compare versions

Comparing version 0.0.0-experimental-1214b25 to 0.0.0-experimental-203eac2

dist/common/keyMap.d.ts

13

./dist/index.js

@@ -9,3 +9,3 @@ 'use strict';

const isBoolean = value => typeof value === 'boolean';
const isObject = value => !isNull(value) && !isUndefined(value) && value.constructor === Object;
const isObject = value => typeof value === 'object' && !isNull(value) && value.constructor === Object;
const isArray = value => Array.isArray(value);

@@ -16,5 +16,3 @@ const isNull = value => value === null;

/**
* Checks empty values for arrays,objects and strings.
*
* @param {object | Array | string} value
* Checks empty values for arrays, objects and strings.
*/

@@ -50,6 +48,6 @@ const isEmpty = value => isString(value) && value.length === 0 || (isObject(value) || isArray(value)) && Object.keys(value).length === 0;

const upperCaseKeyType = keyType.toUpperCase();
const keyDef = keyMap[upperCaseKeyType];
if (!keyDef) {
if (!Object.hasOwn(keyMap, upperCaseKeyType)) {
return false;
}
const keyDef = keyMap[upperCaseKeyType];
const {

@@ -64,3 +62,2 @@ key,

};
var isKey$1 = isKey;

@@ -71,3 +68,3 @@ exports.isArray = isArray;

exports.isInteger = isInteger;
exports.isKey = isKey$1;
exports.isKey = isKey;
exports.isNull = isNull;

@@ -74,0 +71,0 @@ exports.isNumber = isNumber;

@@ -9,3 +9,3 @@ 'use strict';

const isBoolean = value => typeof value === 'boolean';
const isObject = value => !isNull(value) && !isUndefined(value) && value.constructor === Object;
const isObject = value => typeof value === 'object' && !isNull(value) && value.constructor === Object;
const isArray = value => Array.isArray(value);

@@ -16,5 +16,3 @@ const isNull = value => value === null;

/**
* Checks empty values for arrays,objects and strings.
*
* @param {object | Array | string} value
* Checks empty values for arrays, objects and strings.
*/

@@ -50,6 +48,6 @@ const isEmpty = value => isString(value) && value.length === 0 || (isObject(value) || isArray(value)) && Object.keys(value).length === 0;

const upperCaseKeyType = keyType.toUpperCase();
const keyDef = keyMap[upperCaseKeyType];
if (!keyDef) {
if (!Object.hasOwn(keyMap, upperCaseKeyType)) {
return false;
}
const keyDef = keyMap[upperCaseKeyType];
const {

@@ -64,3 +62,2 @@ key,

};
var isKey$1 = isKey;

@@ -71,3 +68,3 @@ exports.isArray = isArray;

exports.isInteger = isInteger;
exports.isKey = isKey$1;
exports.isKey = isKey;
exports.isNull = isNull;

@@ -74,0 +71,0 @@ exports.isNumber = isNumber;

{
"name": "@transferwise/neptune-validation",
"version": "0.0.0-experimental-1214b25",
"version": "0.0.0-experimental-203eac2",
"description": "Neptune Web validation",

@@ -17,6 +17,10 @@ "license": "Apache-2.0",

"sideEffects": [
"**/*.css"
"*.css"
],
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",

@@ -26,4 +30,2 @@ "require": "./dist/index.js"

},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"files": [

@@ -39,6 +41,5 @@ "dist/",

"devDependencies": {
"@babel/core": "^7.22.15",
"@babel/core": "^7.23.9",
"@babel/plugin-transform-runtime": "^7.22.15",
"@babel/preset-env": "^7.22.15",
"@babel/preset-react": "^7.22.15",
"@babel/preset-typescript": "^7.22.15",

@@ -51,4 +52,4 @@ "@rollup/plugin-babel": "^6.0.3",

"@types/babel__core": "^7.20.1",
"@types/jest": "^27.5.2",
"jest": "^27.0.6",
"@types/jest": "^29.5.12",
"jest": "^29.7.0",
"rollup": "^3.28.1"

@@ -60,4 +61,4 @@ },

"scripts": {
"test": "jest --env=node --maxWorkers=4",
"test:watch": "jest --watch --env=node",
"test": "jest",
"test:watch": "jest --watch",
"lint": "pnpm run lint:check",

@@ -64,0 +65,0 @@ "lint:check": "npm-run-all --parallel lint:check:*",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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