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.4.2 to 0.4.3

4

lib/RandomGenerator.js

@@ -5,3 +5,3 @@ "use strict";

var tstl_1 = require("tstl");
var ranges_1 = require("tstl/ranges");
var tstl_2 = require("tstl");
/**

@@ -161,3 +161,3 @@ * Random data generator.

var ret = [];
(0, ranges_1.sample)(array, (0, tstl_1.back_inserter)(ret), count);
tstl_2.ranges.sample(array, (0, tstl_1.back_inserter)(ret), count);
return ret;

@@ -164,0 +164,0 @@ };

@@ -76,3 +76,3 @@ "use strict";

exports.TestValidator = void 0;
var ranges_1 = require("tstl/ranges");
var tstl_1 = require("tstl");
var RandomGenerator_1 = require("./RandomGenerator");

@@ -145,3 +145,7 @@ var json_equal_to_1 = require("./internal/json_equal_to");

if (diff.length)
throw new Error("Bug on ".concat(title, ": found different values - [").concat(diff.join(", "), "]"));
throw new Error([
"Bug on ".concat(title, ": found different values - [").concat(diff.join(", "), "]:"),
"\n",
JSON.stringify({ x: x, y: y }, null, 2),
].join("\n"));
};

@@ -404,3 +408,3 @@ };

reversed = direction === "+" ? comp : function (x, y) { return comp(y, x); };
if ((0, ranges_1.is_sorted)(data, function (x, y) { return reversed(x, y) < 0; }) === false) {
if (tstl_1.ranges.is_sorted(data, function (x, y) { return reversed(x, y) < 0; }) === false) {
if (fields.length === 1 &&

@@ -407,0 +411,0 @@ data.length &&

{
"name": "@nestia/e2e",
"version": "0.4.2",
"version": "0.4.3",
"description": "E2E test utilify functions",

@@ -41,3 +41,3 @@ "main": "lib/index.js",

"typescript": "^5.4.2",
"typia": "^5.5.3"
"typia": "^5.5.7"
},

@@ -47,3 +47,3 @@ "dependencies": {

"cli": "^1.0.1",
"tstl": "^2.5.13"
"tstl": "^3.0.0"
},

@@ -50,0 +50,0 @@ "files": [

@@ -0,0 +0,0 @@ import chalk from "chalk";

import { back_inserter, randint } from "tstl";
import { sample as _Sample } from "tstl/ranges";
import { ranges } from "tstl";

@@ -150,3 +150,3 @@ /**

const ret: T[] = [];
_Sample(array, back_inserter(ret), count);
ranges.sample(array, back_inserter(ret), count);
return ret;

@@ -153,0 +153,0 @@ };

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

import { is_sorted } from "tstl/ranges";
import { ranges } from "tstl";

@@ -71,3 +71,7 @@ import { RandomGenerator } from "./RandomGenerator";

throw new Error(
`Bug on ${title}: found different values - [${diff.join(", ")}]`,
[
`Bug on ${title}: found different values - [${diff.join(", ")}]:`,
"\n",
JSON.stringify({ x, y }, null, 2),
].join("\n"),
);

@@ -304,3 +308,3 @@ };

direction === "+" ? comp : (x, y) => comp(y, x);
if (is_sorted(data, (x, y) => reversed(x, y) < 0) === false) {
if (ranges.is_sorted(data, (x, y) => reversed(x, y) < 0) === false) {
if (

@@ -307,0 +311,0 @@ fields.length === 1 &&

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