@slices.sh/assets 0.1.2 → 0.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/dist/next.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import "server-only";
2
2
  /**
3
- * app/api/assets/[config]/[[...path]]/route.ts re-exports this, beside `export const runtime = "nodejs"`:
4
- * the route hashes bytes and reads public/assets, and a segment option has to be written in the
5
- * route file itself.
3
+ * app/api/assets/[config]/[[...path]]/route.ts re-exports this. The route hashes bytes and reads
4
+ * public/assets, so it needs Node, the default runtime; it does not say so, since Next refuses a
5
+ * `runtime` export under cacheComponents.
6
6
  */
7
7
  export declare const GET: (request: Request, context: {
8
8
  params: Promise<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slices.sh/assets",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "slices v2: assets",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -40,10 +40,11 @@
40
40
  }
41
41
  },
42
42
  "files": [
43
- "dist"
43
+ "dist",
44
+ "setup"
44
45
  ],
45
46
  "dependencies": {
46
- "@slices.sh/core": "^0.1.6",
47
+ "@slices.sh/core": "^0.1.7",
47
48
  "server-only": "^0.0.1"
48
49
  },
49
50
  "peerDependencies": {
@@ -0,0 +1,8 @@
1
+ {
2
+ "service": "assets",
3
+ "selector": "assets-provider",
4
+ "providers": {
5
+ "cdn": "cdn"
6
+ },
7
+ "default": "cdn"
8
+ }