@petezah-games/scramjet-controller 0.1.1 → 0.1.3

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/README.md CHANGED
@@ -29,6 +29,7 @@ The package exports three main entry points:
29
29
  - **`@petezah-games/scramjet-controller`** - Main Controller API
30
30
  - **`@petezah-games/scramjet-controller/inject`** - Injection utilities for service workers
31
31
  - **`@petezah-games/scramjet-controller/worker`** - Service worker
32
+ - **`@petezah-games/scramjet-controller/path`** - Path to dist
32
33
 
33
34
  ## Key Features
34
35
 
package/lib/index.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @fileoverview
3
+ * Scramjet path export for routing functionality
4
+ */
5
+
6
+ declare const path: string;
7
+
8
+ export default path;
package/lib/index.js ADDED
@@ -0,0 +1,5 @@
1
+ import { resolve } from 'node:path'
2
+
3
+ const path = resolve(__dirname, "..", "dist");
4
+
5
+ export default path;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@petezah-games/scramjet-controller",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "Controller for Scramjet proxy, it manages coordination between application, service workers, and proxy transports",
5
5
  "type": "module",
6
6
  "license": "AGPL-3.0-only",
@@ -33,10 +33,15 @@
33
33
  "./worker": {
34
34
  "import": "./dist/controller.sw.js",
35
35
  "types": "./dist/types/sw.d.ts"
36
+ },
37
+ "./path": {
38
+ "import": "./lib/index.js",
39
+ "types": "./lib/index.d.ts"
36
40
  }
37
41
  },
38
42
  "files": [
39
- "dist"
43
+ "dist",
44
+ "lib"
40
45
  ],
41
46
  "dependencies": {
42
47
  "@mercuryworkshop/proxy-transports": "1.0.2",