@eik/cli 3.1.52 → 3.1.53
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/CHANGELOG.md +9 -0
- package/classes/meta.js +1 -1
- package/package.json +5 -7
- package/types/classes/meta.d.ts +3 -3
- package/types/utils/json/write.d.ts +1 -1
- package/utils/defaults.js +1 -1
- package/utils/http/latest-version.js +1 -1
- package/utils/json/read.js +1 -1
- package/utils/json/write.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
## [3.1.53](https://github.com/eik-lib/cli/compare/v3.1.52...v3.1.53) (2026-05-29)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Fix types ([68cad40](https://github.com/eik-lib/cli/commit/68cad40152f75e3a8584eed3d583c3f3228b783d))
|
|
7
|
+
* Remove unused module ([734c5fb](https://github.com/eik-lib/cli/commit/734c5fba6d35e5a7a2a4ada21193f8d5351c2a0c))
|
|
8
|
+
* Replace Tap with node.js test runner ([5030bd7](https://github.com/eik-lib/cli/commit/5030bd7b85d374631ca2cf7e21fe995639f0640f))
|
|
9
|
+
|
|
1
10
|
## [3.1.52](https://github.com/eik-lib/cli/compare/v3.1.51...v3.1.52) (2026-05-28)
|
|
2
11
|
|
|
3
12
|
|
package/classes/meta.js
CHANGED
|
@@ -10,7 +10,7 @@ const types = ["pkg", "map", "npm"];
|
|
|
10
10
|
* @property {import('abslog').AbstractLoggerOptions} [logger]
|
|
11
11
|
* @property {string} server
|
|
12
12
|
* @property {string} name
|
|
13
|
-
* @property {string} version
|
|
13
|
+
* @property {string} [version]
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
export default class Meta {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eik/cli",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.53",
|
|
4
4
|
"description": "CLI tool for publishing assets to an Eik server",
|
|
5
5
|
"main": "./classes/index.js",
|
|
6
6
|
"types": "./types/classes/index.d.ts",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
],
|
|
22
22
|
"scripts": {
|
|
23
23
|
"clean": "git clean -fdx",
|
|
24
|
-
"test": "cross-env HTTP_PORT=0 LOG_LEVEL=fatal
|
|
25
|
-
"test:integration": "cross-env HTTP_PORT=0 LOG_LEVEL=fatal
|
|
26
|
-
"test:unit": "cross-env HTTP_PORT=0 LOG_LEVEL=fatal
|
|
27
|
-
"test:tasks": "cross-env HTTP_PORT=0 LOG_LEVEL=fatal
|
|
24
|
+
"test": "cross-env HTTP_PORT=0 LOG_LEVEL=fatal node --test 'test/*.test.js' 'test/integration/*.test.js' 'test/tasks/*.test.js'",
|
|
25
|
+
"test:integration": "cross-env HTTP_PORT=0 LOG_LEVEL=fatal node --test 'test/integration/*.test.js'",
|
|
26
|
+
"test:unit": "cross-env HTTP_PORT=0 LOG_LEVEL=fatal node --test 'test/*.test.js'",
|
|
27
|
+
"test:tasks": "cross-env HTTP_PORT=0 LOG_LEVEL=fatal node --test 'test/tasks/*.test.js'",
|
|
28
28
|
"lint": "eslint .",
|
|
29
29
|
"lint:fix": "eslint --fix .",
|
|
30
30
|
"format:check": "prettier -c .",
|
|
@@ -46,7 +46,6 @@
|
|
|
46
46
|
"abslog": "2.4.4",
|
|
47
47
|
"bytes": "3.1.2",
|
|
48
48
|
"date-fns": "4.3.0",
|
|
49
|
-
"form-data": "4.0.5",
|
|
50
49
|
"picospinner": "3.0.0",
|
|
51
50
|
"semver": "7.8.1",
|
|
52
51
|
"tar": "7.5.15",
|
|
@@ -76,7 +75,6 @@
|
|
|
76
75
|
"prettier": "3.8.3",
|
|
77
76
|
"semantic-release": "25.0.3",
|
|
78
77
|
"semantic-release-slack-bot": "4.0.2",
|
|
79
|
-
"tap": "21.7.4",
|
|
80
78
|
"typescript": "6.0.3"
|
|
81
79
|
}
|
|
82
80
|
}
|
package/types/classes/meta.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @property {import('abslog').AbstractLoggerOptions} [logger]
|
|
4
4
|
* @property {string} server
|
|
5
5
|
* @property {string} name
|
|
6
|
-
* @property {string} version
|
|
6
|
+
* @property {string} [version]
|
|
7
7
|
*/
|
|
8
8
|
export default class Meta {
|
|
9
9
|
/**
|
|
@@ -13,7 +13,7 @@ export default class Meta {
|
|
|
13
13
|
log: abslog.ValidLogger;
|
|
14
14
|
server: string;
|
|
15
15
|
name: string;
|
|
16
|
-
version: string;
|
|
16
|
+
version: string | undefined;
|
|
17
17
|
/**
|
|
18
18
|
* @returns {Promise<unknown | false>}
|
|
19
19
|
*/
|
|
@@ -23,6 +23,6 @@ export type MetaOptions = {
|
|
|
23
23
|
logger?: import("abslog").AbstractLoggerOptions;
|
|
24
24
|
server: string;
|
|
25
25
|
name: string;
|
|
26
|
-
version
|
|
26
|
+
version?: string | undefined;
|
|
27
27
|
};
|
|
28
28
|
import abslog from "abslog";
|
package/utils/defaults.js
CHANGED
|
@@ -5,7 +5,7 @@ import { join } from "path";
|
|
|
5
5
|
*
|
|
6
6
|
* @param {string} server - Eik asset server address
|
|
7
7
|
* @param {string} name - Package name
|
|
8
|
-
* @param {string|number} major -
|
|
8
|
+
* @param {string|number} [major] - Semver major version number to lock fetch to.
|
|
9
9
|
*
|
|
10
10
|
* @returns {Promise<string|null>} - Semver version string or null if no versions exist
|
|
11
11
|
*
|
package/utils/json/read.js
CHANGED
|
@@ -5,7 +5,7 @@ import { join, isAbsolute } from "path";
|
|
|
5
5
|
/**
|
|
6
6
|
* Reads a file at a given location, assumes the contents to be JSON and then deserializes into a JavaScript object
|
|
7
7
|
*
|
|
8
|
-
* @param {string|{filename:string,cwd
|
|
8
|
+
* @param {string|{filename:string,cwd?:string}} location - Path string or object describing location for where to write JSON to.
|
|
9
9
|
* If location is a string it can be relative or absolute.
|
|
10
10
|
* If location is an object, `pathname` must be given which can be relative or absolute. `cwd` can also be given to define the current working directory.
|
|
11
11
|
* @return {Promise<unknown>} - JavaScript object deserialized from JSON file contents
|
package/utils/json/write.js
CHANGED
|
@@ -6,7 +6,7 @@ import { join, isAbsolute, dirname } from "path";
|
|
|
6
6
|
* Utility function that can be used to write a JavaScript object to a file at a given location.
|
|
7
7
|
*
|
|
8
8
|
* @param {object} meta - JavaScript object to be written as JSON to a file
|
|
9
|
-
* @param {string|{cwd
|
|
9
|
+
* @param {string|{cwd?:string,filename:string}} location - Path string or object describing location for where to write JSON to.
|
|
10
10
|
* If location is a string it can be relative or absolute.
|
|
11
11
|
* If location is an object, `pathname` must be given which can be relative or absolute. `cwd` can also be given to define the current working directory.
|
|
12
12
|
* @returns {Promise<undefined>}
|