@eik/node-client 1.1.62 → 1.1.63

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 CHANGED
@@ -1,3 +1,10 @@
1
+ ## [1.1.63](https://github.com/eik-lib/node-client/compare/v1.1.62...v1.1.63) (2024-08-15)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * generate valid URL pathname on windows hosts ([#197](https://github.com/eik-lib/node-client/issues/197)) ([08312a0](https://github.com/eik-lib/node-client/commit/08312a092fb3ad760abbf4b64e769161dd17acf0))
7
+
1
8
  ## [1.1.62](https://github.com/eik-lib/node-client/compare/v1.1.61...v1.1.62) (2024-08-07)
2
9
 
3
10
 
package/dist/index.cjs CHANGED
@@ -238,7 +238,7 @@ class Eik {
238
238
  */
239
239
  get pathname() {
240
240
  if (this.#config.type && this.#config.name && this.#config.version)
241
- return path.join("/", this.type, this.name, this.version);
241
+ return path.join("/", this.type, this.name, this.version).replace(/\\/g, "/");
242
242
  throw new Error("Eik config was not loaded before calling .pathname");
243
243
  }
244
244
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eik/node-client",
3
- "version": "1.1.62",
3
+ "version": "1.1.63",
4
4
  "description": "Utilities for working with assets and import maps on an Eik server",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -20,6 +20,7 @@
20
20
  ],
21
21
  "scripts": {
22
22
  "build": "rollup -c",
23
+ "clean": "rimraf .tap dist node_modules types",
23
24
  "lint": "eslint .",
24
25
  "lint:fix": "eslint --fix .",
25
26
  "test": "tap --disable-coverage --allow-empty-coverage",
@@ -54,6 +55,7 @@
54
55
  "eslint": "9.8.0",
55
56
  "npm-run-all": "4.1.5",
56
57
  "prettier": "3.3.3",
58
+ "rimraf": "6.0.1",
57
59
  "rollup": "4.20.0",
58
60
  "semantic-release": "24.0.0",
59
61
  "tap": "21.0.0",
package/src/index.js CHANGED
@@ -186,7 +186,7 @@ export default class Eik {
186
186
  */
187
187
  get pathname() {
188
188
  if (this.#config.type && this.#config.name && this.#config.version)
189
- return join("/", this.type, this.name, this.version);
189
+ return join("/", this.type, this.name, this.version).replace(/\\/g, "/");
190
190
  throw new Error("Eik config was not loaded before calling .pathname");
191
191
  }
192
192