@slices.sh/assets 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/dist/client.d.ts +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/next.d.ts +3 -3
- package/dist/services/collect.d.ts +1 -1
- package/package.json +2 -2
package/dist/client.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { assetUrl } from "./services/types";
|
|
2
|
-
export type { AssetDefinition, AssetManifest, AssetsClient } from "./services/types";
|
|
1
|
+
export { assetUrl } from "./services/types.js";
|
|
2
|
+
export type { AssetDefinition, AssetManifest, AssetsClient } from "./services/types.js";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Provider } from "@slices.sh/core";
|
|
2
|
-
import type { AssetDefinition, AssetsClient } from "./services/types";
|
|
3
|
-
export type { AssetDefinition, AssetManifest, AssetsClient, AssetsService } from "./services/types";
|
|
4
|
-
export type { AssetsCapabilities } from "./services/capabilities";
|
|
2
|
+
import type { AssetDefinition, AssetsClient } from "./services/types.js";
|
|
3
|
+
export type { AssetDefinition, AssetManifest, AssetsClient, AssetsService } from "./services/types.js";
|
|
4
|
+
export type { AssetsCapabilities } from "./services/capabilities.js";
|
|
5
5
|
/** What a config of this service says besides its provider. */
|
|
6
6
|
export type AssetsConfigOptions = {
|
|
7
7
|
/**
|
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
|
|
4
|
-
*
|
|
5
|
-
*
|
|
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<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "server-only";
|
|
2
|
-
import type { AssetDefinition, AssetManifest } from "./types";
|
|
2
|
+
import type { AssetDefinition, AssetManifest } from "./types.js";
|
|
3
3
|
/** Each part of a name, so a name can never climb out of public/assets or name a hidden file. */
|
|
4
4
|
export declare const safeName: (name: string) => boolean;
|
|
5
5
|
/** Whether an entry is one a request may fetch bytes for: a pinned https file of a bounded size. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slices.sh/assets",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "slices v2: assets",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"dist"
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@slices.sh/core": "^0.1.
|
|
46
|
+
"@slices.sh/core": "^0.1.7",
|
|
47
47
|
"server-only": "^0.0.1"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|