@nestia/e2e 10.0.2 → 11.0.0-dev.20260312

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- var e2e = __importStar(require("./module"));
39
+ const e2e = __importStar(require("./module"));
40
40
  exports.default = e2e;
41
41
  __exportStar(require("./module"), exports);
42
42
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAAgC;AAEhC,kBAAe,GAAG,CAAC;AACnB,2CAAyB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAgC;AAEhC,kBAAe,GAAG,CAAC;AACnB,2CAAyB"}
@@ -1,51 +1,33 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.json_equal_to = void 0;
4
- var json_equal_to = function (exception) {
5
- return function (x) {
6
- return function (y) {
7
- var container = [];
8
- var iterate = function (accessor) {
9
- return function (x) {
10
- return function (y) {
11
- if (typeof x === "function" || typeof y === "function")
12
- return;
13
- else if (typeof x !== typeof y)
14
- container.push(accessor);
15
- else if (x instanceof Array)
16
- if (!(y instanceof Array))
17
- container.push(accessor);
18
- else
19
- array(accessor)(x)(y);
20
- else if (x instanceof Object)
21
- object(accessor)(x)(y);
22
- else if (x !== y)
23
- container.push(accessor);
24
- };
25
- };
26
- };
27
- var array = function (accessor) {
28
- return function (x) {
29
- return function (y) {
30
- if (x.length !== y.length)
31
- container.push("".concat(accessor, ".length"));
32
- x.forEach(function (xItem, i) { return iterate("".concat(accessor, "[").concat(i, "]"))(xItem)(y[i]); });
33
- };
34
- };
35
- };
36
- var object = function (accessor) {
37
- return function (x) {
38
- return function (y) {
39
- return Object.keys(x)
40
- .filter(function (key) { return x[key] !== undefined && !exception(key); })
41
- .forEach(function (key) { return iterate("".concat(accessor, ".").concat(key))(x[key])(y[key]); });
42
- };
43
- };
44
- };
45
- iterate("")(x)(y);
46
- return container;
47
- };
4
+ const json_equal_to = (exception) => (x) => (y) => {
5
+ const container = [];
6
+ const iterate = (accessor) => (x) => (y) => {
7
+ if (typeof x === "function" || typeof y === "function")
8
+ return;
9
+ else if (typeof x !== typeof y)
10
+ container.push(accessor);
11
+ else if (x instanceof Array)
12
+ if (!(y instanceof Array))
13
+ container.push(accessor);
14
+ else
15
+ array(accessor)(x)(y);
16
+ else if (x instanceof Object)
17
+ object(accessor)(x)(y);
18
+ else if (x !== y)
19
+ container.push(accessor);
48
20
  };
21
+ const array = (accessor) => (x) => (y) => {
22
+ if (x.length !== y.length)
23
+ container.push(`${accessor}.length`);
24
+ x.forEach((xItem, i) => iterate(`${accessor}[${i}]`)(xItem)(y[i]));
25
+ };
26
+ const object = (accessor) => (x) => (y) => Object.keys(x)
27
+ .filter((key) => x[key] !== undefined && !exception(key))
28
+ .forEach((key) => iterate(`${accessor}.${key}`)(x[key])(y[key]));
29
+ iterate("")(x)(y);
30
+ return container;
49
31
  };
50
32
  exports.json_equal_to = json_equal_to;
51
33
  //# sourceMappingURL=json_equal_to.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"json_equal_to.js","sourceRoot":"","sources":["../../src/internal/json_equal_to.ts"],"names":[],"mappings":";;;AAAO,IAAM,aAAa,GACxB,UAAC,SAAmC;IACpC,OAAA,UAAI,CAAI;QACR,OAAA,UAAC,CAAuB;YACtB,IAAM,SAAS,GAAa,EAAE,CAAC;YAC/B,IAA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,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAlCS,QAAA,aAAa,iBAkCtB"}
package/package.json CHANGED
@@ -1,17 +1,14 @@
1
1
  {
2
2
  "name": "@nestia/e2e",
3
- "version": "10.0.2",
3
+ "version": "11.0.0-dev.20260312",
4
4
  "description": "E2E test utilify functions",
5
5
  "main": "lib/index.js",
6
- "typings": "lib/index.d.ts",
7
- "scripts": {
8
- "build": "npm run build:main && npm run build:test",
9
- "build:main": "rimraf lib && tsc",
10
- "build:test": "rimraf bin && tsc -p test/tsconfig.json",
11
- "dev": "npm run build:test -- --watch",
12
- "eslint": "eslint src && eslint test",
13
- "prepare": "ts-patch install && typia patch",
14
- "test": "node bin/test"
6
+ "exports": {
7
+ ".": {
8
+ "types": "./lib/index.d.ts",
9
+ "default": "./lib/index.js"
10
+ },
11
+ "./package.json": "./package.json"
15
12
  },
16
13
  "repository": {
17
14
  "type": "git",
@@ -32,16 +29,9 @@
32
29
  },
33
30
  "homepage": "https://nestia.io",
34
31
  "devDependencies": {
35
- "@trivago/prettier-plugin-sort-imports": "^4.0.0",
36
- "@types/node": "^18.11.18",
37
- "@typescript-eslint/eslint-plugin": "^5.57.0",
38
- "@typescript-eslint/parser": "^5.57.0",
39
- "rimraf": "^6.0.1",
40
- "ts-node": "^10.9.1",
41
- "ts-patch": "^3.3.0",
42
- "typescript": "~5.9.3",
43
- "typescript-transform-paths": "^3.4.7",
44
- "typia": "^11.0.0"
32
+ "@types/node": "^25.3.3",
33
+ "rimraf": "^6.1.3",
34
+ "typescript": "~5.9.3"
45
35
  },
46
36
  "files": [
47
37
  "lib",
@@ -49,5 +39,13 @@
49
39
  "README.md",
50
40
  "LICENSE",
51
41
  "package.json"
52
- ]
42
+ ],
43
+ "publishConfig": {
44
+ "access": "public"
45
+ },
46
+ "scripts": {
47
+ "build": "rimraf lib && tsc",
48
+ "dev": "rimraf lib && tsc --watch"
49
+ },
50
+ "types": "lib/index.d.ts"
53
51
  }