Socket
Socket
Sign inDemoInstall

@nestia/e2e

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nestia/e2e - npm Package Compare versions

Comparing version 0.3.3 to 0.3.4

28

lib/internal/json_equal_to.js
"use strict";
var __read = (this && this.__read) || function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -55,10 +39,6 @@ exports.json_equal_to = void 0;

return function (y) {
return Object.entries(x)
.filter(function (_a) {
var _b = __read(_a, 1), k = _b[0];
return !exception(k);
})
.forEach(function (_a) {
var _b = __read(_a, 2), k = _b[0], v = _b[1];
return iterate("".concat(accessor, ".").concat(k))(v)(y[k]);
return Object.keys(x)
.filter(function (key) { return x[key] !== undefined && !exception(key); })
.forEach(function (key) {
return iterate("".concat(accessor, ".").concat(key))(x[key])(y[key]);
});

@@ -65,0 +45,0 @@ };

2

package.json
{
"name": "@nestia/e2e",
"version": "0.3.3",
"version": "0.3.4",
"description": "E2E test utilify functions",

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

@@ -30,5 +30,7 @@ export const json_equal_to =

(y: any): void =>
Object.entries(x)
.filter(([k]) => !exception(k))
.forEach(([k, v]) => iterate(`${accessor}.${k}`)(v)(y[k]));
Object.keys(x)
.filter((key) => x[key] !== undefined && !exception(key))
.forEach((key) =>
iterate(`${accessor}.${key}`)(x[key])(y[key]),
);

@@ -35,0 +37,0 @@ iterate("")(x)(y);

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