ejv 2.1.2 → 2.1.4

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2018 Janghyun Han
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2018 Janghyun Han
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README-KR.md CHANGED
@@ -1,7 +1,14 @@
1
1
  ![npm](https://img.shields.io/npm/v/ejv?logo=npm)
2
+ ![NPM Last Update](https://img.shields.io/npm/last-update/ejv)
3
+
4
+ [English](https://github.com/han41858/ejv/blob/master/README.md)
2
5
 
3
6
  # ejv - Easy JSON Validator
4
7
 
8
+ ![JSON](https://img.shields.io/badge/JSON-black?color=000000&logo=json&logoColor=white)
9
+ ![TypeScript](https://img.shields.io/badge/TypeScript-black?color=3178C6&logo=typescript&logoColor=white)
10
+ ![JavaScript](https://img.shields.io/badge/JavaScript-black?color=F7DF1E&logo=javascript&logoColor=white)
11
+
5
12
  ejv는 JSON 객체를 검사할 때 사용하는 라이브러리입니다. 복잡한 JSON 객체를 간단한 문법으로 검사해 보세요.
6
13
 
7
14
  > ejv 는 TypeScript로 작성되었으며 JavaScript 코드로 컴파일되어 배포됩니다. 따라서 TypeScript 문법으로 사용할 수도 있고 JavaScript 문법으로 사용할 수도 있습니다.
package/README.md CHANGED
@@ -1,8 +1,13 @@
1
1
  ![npm](https://img.shields.io/npm/v/ejv?logo=npm)
2
+ ![NPM Last Update](https://img.shields.io/npm/last-update/ejv)
3
+
4
+ [🇰🇷 한국어](https://github.com/han41858/ejv/blob/master/README-KR.md)
2
5
 
3
6
  # ejv - Easy JSON Validator
4
7
 
5
- [한국어](https://github.com/han41858/ejv/blob/master/README-KR.md)
8
+ ![JSON](https://img.shields.io/badge/JSON-black?color=000000&logo=json&logoColor=white)
9
+ ![TypeScript](https://img.shields.io/badge/TypeScript-black?color=3178C6&logo=typescript&logoColor=white)
10
+ ![JavaScript](https://img.shields.io/badge/JavaScript-black?color=F7DF1E&logo=javascript&logoColor=white)
6
11
 
7
12
  ejv is JSON validation library. Check your JSON object with simple syntax.
8
13
 
@@ -1 +1 @@
1
- { "type": "commonjs" }
1
+ {"type":"commonjs"}
@@ -1 +1 @@
1
- { "type": "module" }
1
+ {"type":"module"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const node_path_1 = require("node:path");
4
+ const node_fs_1 = require("node:fs");
5
+ console.log('* create-package-json');
6
+ const buildPath = (0, node_path_1.join)('.', 'build');
7
+ (0, node_fs_1.writeFileSync)((0, node_path_1.join)(buildPath, 'cjs', 'package.json'), JSON.stringify({
8
+ type: 'commonjs'
9
+ }));
10
+ (0, node_fs_1.writeFileSync)((0, node_path_1.join)(buildPath, 'esm', 'package.json'), JSON.stringify({
11
+ type: 'module'
12
+ }));
13
+ //# sourceMappingURL=create-package-json.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-package-json.js","sourceRoot":"","sources":["../../scripts/create-package-json.ts"],"names":[],"mappings":";;AAAA,yCAAiC;AACjC,qCAAwC;AAGxC,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;AAErC,MAAM,SAAS,GAAW,IAAA,gBAAI,EAAC,GAAG,EAAE,OAAO,CAAC,CAAC;AAE7C,IAAA,uBAAa,EAAC,IAAA,gBAAI,EAAC,SAAS,EAAE,KAAK,EAAE,cAAc,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC;IACpE,IAAI,EAAE,UAAU;CAChB,CAAC,CAAC,CAAC;AAEJ,IAAA,uBAAa,EAAC,IAAA,gBAAI,EAAC,SAAS,EAAE,KAAK,EAAE,cAAc,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC;IACpE,IAAI,EAAE,QAAQ;CACd,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "ejv",
3
- "version": "2.1.2",
3
+ "version": "2.1.4",
4
4
  "description": "Easy JSON Validator",
5
5
  "exports": {
6
6
  "require": "./build/cjs/index.js",
7
- "import": "./build/esm/index.js"
7
+ "import": "./build/esm/index.js",
8
+ "types": "./build/index.d.ts"
8
9
  },
9
10
  "types": "build/index.d.ts",
10
11
  "main": "build/cjs/index.js",
@@ -12,10 +13,10 @@
12
13
  "clean": "rimraf ./build",
13
14
  "prebuild": "yarn clean",
14
15
  "build:types": "tsc -p tsconfig.types.json",
15
- "build:cjs": "tsc -p tsconfig.cjs.json&&echo { \"type\": \"commonjs\" } > build/cjs/package.json",
16
- "build:esm": "tsc -p tsconfig.esm.json&&echo { \"type\": \"module\" } > build/esm/package.json",
16
+ "build:cjs": "tsc -p tsconfig.cjs.json",
17
+ "build:esm": "tsc -p tsconfig.esm.json",
17
18
  "build": "yarn build:types&&yarn build:cjs&&yarn build:esm",
18
- "postbuild": "tsc -p tsconfig.scripts.json&&node build/scripts/add-js-extensions",
19
+ "postbuild": "tsc -p tsconfig.scripts.json&&node build/scripts/add-js-extensions&&node build/scripts/create-package-json",
19
20
  "test": "mocha",
20
21
  "lint": "eslint"
21
22
  },
@@ -35,20 +36,21 @@
35
36
  },
36
37
  "homepage": "https://github.com/han41858/ejv#readme",
37
38
  "devDependencies": {
38
- "@eslint/js": "^9.12.0",
39
- "@types/chai": "^5.0.0",
40
- "@types/mocha": "^10.0.8",
41
- "@types/node": "20.16.10",
42
- "@typescript-eslint/eslint-plugin": "^8.8.0",
43
- "@typescript-eslint/parser": "^8.8.0",
44
- "chai": "^5.1.1",
45
- "eslint": "^9.12.0",
46
- "eslint-plugin-chai-friendly": "^1.0.1",
47
- "globals": "^15.10.0",
48
- "mocha": "^10.7.3",
39
+ "@eslint/js": "^9.30.1",
40
+ "@types/chai": "^5.2.2",
41
+ "@types/mocha": "^10.0.10",
42
+ "@types/node": "^22.16.0",
43
+ "@typescript-eslint/eslint-plugin": "^8.35.1",
44
+ "@typescript-eslint/parser": "^8.35.1",
45
+ "chai": "^5.2.0",
46
+ "eslint": "^9.30.1",
47
+ "eslint-plugin-chai-friendly": "^1.1.0",
48
+ "globals": "^16.3.0",
49
+ "mocha": "^11.7.1",
49
50
  "rimraf": "^6.0.1",
50
- "tsx": "^4.19.1",
51
- "typescript": "^5.6.2",
52
- "typescript-eslint": "^8.8.0"
53
- }
51
+ "tsx": "^4.20.3",
52
+ "typescript": "^5.8.3",
53
+ "typescript-eslint": "^8.35.1"
54
+ },
55
+ "packageManager": "yarn@1.22.19+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447"
54
56
  }
@@ -0,0 +1,15 @@
1
+ import { join } from 'node:path';
2
+ import { writeFileSync } from 'node:fs';
3
+
4
+
5
+ console.log('* create-package-json');
6
+
7
+ const buildPath: string = join('.', 'build');
8
+
9
+ writeFileSync(join(buildPath, 'cjs', 'package.json'), JSON.stringify({
10
+ type: 'commonjs'
11
+ }));
12
+
13
+ writeFileSync(join(buildPath, 'esm', 'package.json'), JSON.stringify({
14
+ type: 'module'
15
+ }));