foldkit-media 0.7.0 → 0.9.0
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
|
@@ -32,10 +32,8 @@ a resizing server, its Cloudflare and Node layers, uploads, and Vite plugins.
|
|
|
32
32
|
|
|
33
33
|
## The model
|
|
34
34
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
facts URL scheme how wide (no I/O)
|
|
38
|
-
```
|
|
35
|
+
An `ImageAsset` (the facts), a `Provider` (the URL scheme) and a `Layout` (how wide)
|
|
36
|
+
go into `Picture.derive`, which gives the attributes a view writes. It does no I/O.
|
|
39
37
|
|
|
40
38
|
One `Widths` ladder, carried by the provider, decides which widths exist. A
|
|
41
39
|
`Layout` picks the ones worth offering:
|
package/dist/browser/upload.d.ts
CHANGED
|
@@ -109,7 +109,8 @@ export declare const upload: (file: Blob, options?: UploadOptions) => Stream.Str
|
|
|
109
109
|
* claim on save. The body goes as `application/octet-stream`, which no page
|
|
110
110
|
* can send to another site without a preflight, and the file's name and type
|
|
111
111
|
* in headers of their own; a file the browser gives no type is declared
|
|
112
|
-
* `application/octet-stream`. A refusal fails it with `UploadFailed
|
|
112
|
+
* `application/octet-stream`. A refusal fails it with `UploadFailed`, as does a
|
|
113
|
+
* file name that cannot be sent (`Malformed`, status `0`).
|
|
113
114
|
*/
|
|
114
115
|
export declare const uploadFile: (file: File, options?: UploadOptions) => Stream.Stream<FileUploadEvent, UploadFailed>;
|
|
115
116
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload.d.ts","names":[],"sources":["../../src/browser/upload.ts"],"mappings":";;;qBAYa,eAAa,OAAA;YAiBd,uBAAuB,cAAc;;;;;;qBAEpC,qBAAqB;;qBAOrB,YAAU,OAAA;;;;;qBAKV,UAAQ,OAAA;;;;;;;;;;;;;;;;;;;;;;qBACR,aAAW,OAAA,gBAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;YACZ,qBAAqB,YAAY;;qBAEhC,cAAY,OAAA;;;;;;;;qBACZ,iBAAe,OAAA,gBAAA,OAAA;;;;;;;;;;;YAChB,yBAAyB,gBAAgB;iBA0BpC;;WAEN;;;;;;WAMA,UAAU,SAAS;;;;;;;;;;qBA2DjB,SAAM,MACX,MAAI,UACD,kBACR,OAAO,OAAO,aAAa
|
|
1
|
+
{"version":3,"file":"upload.d.ts","names":[],"sources":["../../src/browser/upload.ts"],"mappings":";;;qBAYa,eAAa,OAAA;YAiBd,uBAAuB,cAAc;;;;;;qBAEpC,qBAAqB;;qBAOrB,YAAU,OAAA;;;;;qBAKV,UAAQ,OAAA;;;;;;;;;;;;;;;;;;;;;;qBACR,aAAW,OAAA,gBAAA,OAAA;;;;;;;;;;;;;;;;;;;;;;;;;YACZ,qBAAqB,YAAY;;qBAEhC,cAAY,OAAA;;;;;;;;qBACZ,iBAAe,OAAA,gBAAA,OAAA;;;;;;;;;;;YAChB,yBAAyB,gBAAgB;iBA0BpC;;WAEN;;;;;;WAMA,UAAU,SAAS;;;;;;;;;;qBA2DjB,SAAM,MACX,MAAI,UACD,kBACR,OAAO,OAAO,aAAa;;;;;;;;;;qBAcjB,aAAU,MACf,MAAI,UACD,kBACR,OAAO,OAAO,iBAAiB"}
|
package/dist/browser/upload.js
CHANGED
|
@@ -101,14 +101,21 @@ const upload = (file, options = {}) => sent(file, options.url ?? "/_media/upload
|
|
|
101
101
|
* claim on save. The body goes as `application/octet-stream`, which no page
|
|
102
102
|
* can send to another site without a preflight, and the file's name and type
|
|
103
103
|
* in headers of their own; a file the browser gives no type is declared
|
|
104
|
-
* `application/octet-stream`. A refusal fails it with `UploadFailed
|
|
104
|
+
* `application/octet-stream`. A refusal fails it with `UploadFailed`, as does a
|
|
105
|
+
* file name that cannot be sent (`Malformed`, status `0`).
|
|
105
106
|
*/
|
|
106
|
-
const uploadFile = (file, options = {}) =>
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}
|
|
107
|
+
const uploadFile = (file, options = {}) => Stream.suspend(() => {
|
|
108
|
+
const name = Option.liftThrowable(encodeURIComponent)(file.name);
|
|
109
|
+
return Option.isNone(name) ? Stream.fail(new UploadFailed({
|
|
110
|
+
reason: "Malformed",
|
|
111
|
+
status: 0
|
|
112
|
+
})) : sent(file, options.url ?? "/_media/files", {
|
|
113
|
+
...options.headers,
|
|
114
|
+
"content-type": "application/octet-stream",
|
|
115
|
+
"x-foldkit-file-name": name.value,
|
|
116
|
+
"x-foldkit-file-type": file.type === "" ? "application/octet-stream" : file.type
|
|
117
|
+
}, fileFactsOf, (asset) => FileUploaded.make({ asset }));
|
|
118
|
+
});
|
|
112
119
|
export { FileUploadEvent, FileUploaded, Progressed, UploadEvent, UploadFailed, UploadRefusal, Uploaded, upload, uploadFile };
|
|
113
120
|
|
|
114
121
|
//# sourceMappingURL=upload.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload.js","names":[],"sources":["../../src/browser/upload.ts"],"sourcesContent":["/**\n * A file sent to an upload route from a browser: the bytes go once, with\n * their progress reported as they go, and the route's facts come back: an\n * image's `HashedAsset` (`upload`), or any file's `FileAsset` (`uploadFile`).\n * `fetch` reports no upload progress, so this is an `XMLHttpRequest`, and\n * interrupting the stream aborts it.\n */\nimport { Cause, Effect, Option, Queue, Schema, Stream } from 'effect'\nimport { HashedAsset } from '../asset.js'\nimport { FileAsset } from '../file.js'\n\n/** Why an upload did not end in facts: the route's refusal, or no answer at all. */\nexport const UploadRefusal = Schema.Literals([\n 'Forbidden',\n 'Unauthenticated',\n 'TooLarge',\n 'Unsupported',\n 'Malformed',\n /** The file route: the body came too slowly. */\n 'TooSlow',\n /** The file route: every slot was taken, or this uploader already had one. Try again soon. */\n 'Busy',\n /** The file route: too many uploads lately. */\n 'RateLimited',\n /** No answer: the network failed, or the request was refused before reaching the route. */\n 'Network',\n /** An answer that is neither the route's facts nor one of its refusals. */\n 'Unexpected',\n])\nexport type UploadRefusal = typeof UploadRefusal.Type\n\nexport class UploadFailed extends Schema.TaggedError<UploadFailed>()('UploadFailed', {\n reason: UploadRefusal,\n /** The HTTP status, `0` when there was no answer. */\n status: Schema.Number,\n}) {}\n\n/** How far the bytes have gone: `loaded` of `total`. */\nexport const Progressed = Schema.TaggedStruct('Progressed', {\n loaded: Schema.Number,\n total: Schema.Number,\n})\n/** The route kept the image, and these are its facts. */\nexport const Uploaded = Schema.TaggedStruct('Uploaded', { asset: HashedAsset })\nexport const UploadEvent = Schema.Union([Progressed, Uploaded])\nexport type UploadEvent = typeof UploadEvent.Type\n/** The file route kept the file, and these are its facts. */\nexport const FileUploaded = Schema.TaggedStruct('FileUploaded', { asset: FileAsset })\nexport const FileUploadEvent = Schema.Union([Progressed, FileUploaded])\nexport type FileUploadEvent = typeof FileUploadEvent.Type\n\nconst refusals: Readonly<Record<number, UploadRefusal>> = {\n 400: 'Malformed',\n 401: 'Unauthenticated',\n 403: 'Forbidden',\n 408: 'TooSlow',\n 413: 'TooLarge',\n 415: 'Unsupported',\n 429: 'RateLimited',\n 503: 'Busy',\n}\n\n/** The facts in a 201's body, or none for a body that is not them. */\nconst factsOf =\n <A>(schema: Schema.Codec<A, unknown>) =>\n (body: string): Option.Option<A> => {\n try {\n return Schema.decodeUnknownOption(schema)(JSON.parse(body))\n } catch {\n return Option.none()\n }\n }\nconst imageFactsOf = factsOf(HashedAsset)\nconst fileFactsOf = factsOf(FileAsset)\n\nexport interface UploadOptions {\n /** Where the route is. Default `/_media/upload`. */\n readonly url?: string | undefined\n /**\n * Sent with the bytes. A page's own session cookie goes with a same-origin\n * request already: never put a deployment's secret (`uploadPolicyBearer`'s) here,\n * where every visitor can read it.\n */\n readonly headers?: Readonly<Record<string, string>> | undefined\n}\n\n// The one sender: `body` goes with `headers`, its progress reported, and a 201 whose body\n// `read` takes ends the stream with `done` of it.\nconst sent = <A, Event>(\n body: Blob,\n url: string,\n headers: Readonly<Record<string, string>>,\n read: (body: string) => Option.Option<A>,\n done: (facts: A) => Event,\n): Stream.Stream<typeof Progressed.Type | Event, UploadFailed> =>\n Stream.callback<typeof Progressed.Type | Event, UploadFailed>(queue =>\n Effect.acquireRelease(\n Effect.sync(() => {\n const request = new XMLHttpRequest()\n const fail = (reason: UploadRefusal) =>\n Queue.failCauseUnsafe(\n queue,\n Cause.fail(new UploadFailed({ reason, status: request.status })),\n )\n request.upload.onprogress = event => {\n Queue.offerUnsafe(\n queue,\n Progressed.make({\n loaded: event.loaded,\n total: event.lengthComputable ? event.total : body.size,\n }),\n )\n }\n request.onload = () => {\n if (request.status !== 201) return fail(refusals[request.status] ?? 'Unexpected')\n Option.match(read(request.responseText), {\n onNone: () => fail('Unexpected'),\n onSome: facts => {\n Queue.offerUnsafe(queue, done(facts))\n Queue.endUnsafe(queue)\n },\n })\n }\n request.onerror = () => fail('Network')\n request.open('POST', url)\n for (const [name, value] of Object.entries(headers)) request.setRequestHeader(name, value)\n request.send(body)\n return request\n }),\n // Done or not, the request goes with the stream: abort is a no-op on one that finished.\n request => Effect.sync(() => request.abort()),\n ),\n )\n\n/**\n * Sends `file` to the upload route as its body, which the browser types by the\n * file's own `type`:\n * `Progressed` as the bytes go, then one `Uploaded` with the facts, and the\n * stream ends. A refusal fails it with `UploadFailed`, naming why; a file the\n * route does not take as an image is `Unsupported`. Interrupting it aborts the\n * request.\n */\nexport const upload = (\n file: Blob,\n options: UploadOptions = {},\n): Stream.Stream<UploadEvent, UploadFailed> =>\n sent(file, options.url ?? '/_media/upload', options.headers ?? {}, imageFactsOf, asset =>\n Uploaded.make({ asset }),\n )\n\n/**\n * Sends any `file` to the file route (`/_media/files` by default):\n * `Progressed` as the bytes go, then one `FileUploaded` with the facts to\n * claim on save. The body goes as `application/octet-stream`, which no page\n * can send to another site without a preflight, and the file's name and type\n * in headers of their own; a file the browser gives no type is declared\n * `application/octet-stream`. A refusal fails it with `UploadFailed
|
|
1
|
+
{"version":3,"file":"upload.js","names":[],"sources":["../../src/browser/upload.ts"],"sourcesContent":["/**\n * A file sent to an upload route from a browser: the bytes go once, with\n * their progress reported as they go, and the route's facts come back: an\n * image's `HashedAsset` (`upload`), or any file's `FileAsset` (`uploadFile`).\n * `fetch` reports no upload progress, so this is an `XMLHttpRequest`, and\n * interrupting the stream aborts it.\n */\nimport { Cause, Effect, Option, Queue, Schema, Stream } from 'effect'\nimport { HashedAsset } from '../asset.js'\nimport { FileAsset } from '../file.js'\n\n/** Why an upload did not end in facts: the route's refusal, or no answer at all. */\nexport const UploadRefusal = Schema.Literals([\n 'Forbidden',\n 'Unauthenticated',\n 'TooLarge',\n 'Unsupported',\n 'Malformed',\n /** The file route: the body came too slowly. */\n 'TooSlow',\n /** The file route: every slot was taken, or this uploader already had one. Try again soon. */\n 'Busy',\n /** The file route: too many uploads lately. */\n 'RateLimited',\n /** No answer: the network failed, or the request was refused before reaching the route. */\n 'Network',\n /** An answer that is neither the route's facts nor one of its refusals. */\n 'Unexpected',\n])\nexport type UploadRefusal = typeof UploadRefusal.Type\n\nexport class UploadFailed extends Schema.TaggedError<UploadFailed>()('UploadFailed', {\n reason: UploadRefusal,\n /** The HTTP status, `0` when there was no answer. */\n status: Schema.Number,\n}) {}\n\n/** How far the bytes have gone: `loaded` of `total`. */\nexport const Progressed = Schema.TaggedStruct('Progressed', {\n loaded: Schema.Number,\n total: Schema.Number,\n})\n/** The route kept the image, and these are its facts. */\nexport const Uploaded = Schema.TaggedStruct('Uploaded', { asset: HashedAsset })\nexport const UploadEvent = Schema.Union([Progressed, Uploaded])\nexport type UploadEvent = typeof UploadEvent.Type\n/** The file route kept the file, and these are its facts. */\nexport const FileUploaded = Schema.TaggedStruct('FileUploaded', { asset: FileAsset })\nexport const FileUploadEvent = Schema.Union([Progressed, FileUploaded])\nexport type FileUploadEvent = typeof FileUploadEvent.Type\n\nconst refusals: Readonly<Record<number, UploadRefusal>> = {\n 400: 'Malformed',\n 401: 'Unauthenticated',\n 403: 'Forbidden',\n 408: 'TooSlow',\n 413: 'TooLarge',\n 415: 'Unsupported',\n 429: 'RateLimited',\n 503: 'Busy',\n}\n\n/** The facts in a 201's body, or none for a body that is not them. */\nconst factsOf =\n <A>(schema: Schema.Codec<A, unknown>) =>\n (body: string): Option.Option<A> => {\n try {\n return Schema.decodeUnknownOption(schema)(JSON.parse(body))\n } catch {\n return Option.none()\n }\n }\nconst imageFactsOf = factsOf(HashedAsset)\nconst fileFactsOf = factsOf(FileAsset)\n\nexport interface UploadOptions {\n /** Where the route is. Default `/_media/upload`. */\n readonly url?: string | undefined\n /**\n * Sent with the bytes. A page's own session cookie goes with a same-origin\n * request already: never put a deployment's secret (`uploadPolicyBearer`'s) here,\n * where every visitor can read it.\n */\n readonly headers?: Readonly<Record<string, string>> | undefined\n}\n\n// The one sender: `body` goes with `headers`, its progress reported, and a 201 whose body\n// `read` takes ends the stream with `done` of it.\nconst sent = <A, Event>(\n body: Blob,\n url: string,\n headers: Readonly<Record<string, string>>,\n read: (body: string) => Option.Option<A>,\n done: (facts: A) => Event,\n): Stream.Stream<typeof Progressed.Type | Event, UploadFailed> =>\n Stream.callback<typeof Progressed.Type | Event, UploadFailed>(queue =>\n Effect.acquireRelease(\n Effect.sync(() => {\n const request = new XMLHttpRequest()\n const fail = (reason: UploadRefusal) =>\n Queue.failCauseUnsafe(\n queue,\n Cause.fail(new UploadFailed({ reason, status: request.status })),\n )\n request.upload.onprogress = event => {\n Queue.offerUnsafe(\n queue,\n Progressed.make({\n loaded: event.loaded,\n total: event.lengthComputable ? event.total : body.size,\n }),\n )\n }\n request.onload = () => {\n if (request.status !== 201) return fail(refusals[request.status] ?? 'Unexpected')\n Option.match(read(request.responseText), {\n onNone: () => fail('Unexpected'),\n onSome: facts => {\n Queue.offerUnsafe(queue, done(facts))\n Queue.endUnsafe(queue)\n },\n })\n }\n request.onerror = () => fail('Network')\n request.open('POST', url)\n for (const [name, value] of Object.entries(headers)) request.setRequestHeader(name, value)\n request.send(body)\n return request\n }),\n // Done or not, the request goes with the stream: abort is a no-op on one that finished.\n request => Effect.sync(() => request.abort()),\n ),\n )\n\n/**\n * Sends `file` to the upload route as its body, which the browser types by the\n * file's own `type`:\n * `Progressed` as the bytes go, then one `Uploaded` with the facts, and the\n * stream ends. A refusal fails it with `UploadFailed`, naming why; a file the\n * route does not take as an image is `Unsupported`. Interrupting it aborts the\n * request.\n */\nexport const upload = (\n file: Blob,\n options: UploadOptions = {},\n): Stream.Stream<UploadEvent, UploadFailed> =>\n sent(file, options.url ?? '/_media/upload', options.headers ?? {}, imageFactsOf, asset =>\n Uploaded.make({ asset }),\n )\n\n/**\n * Sends any `file` to the file route (`/_media/files` by default):\n * `Progressed` as the bytes go, then one `FileUploaded` with the facts to\n * claim on save. The body goes as `application/octet-stream`, which no page\n * can send to another site without a preflight, and the file's name and type\n * in headers of their own; a file the browser gives no type is declared\n * `application/octet-stream`. A refusal fails it with `UploadFailed`, as does a\n * file name that cannot be sent (`Malformed`, status `0`).\n */\nexport const uploadFile = (\n file: File,\n options: UploadOptions = {},\n): Stream.Stream<FileUploadEvent, UploadFailed> =>\n // A name `encodeURIComponent` refuses (a lone surrogate) is a failure of the stream, not a throw here.\n Stream.suspend(() => {\n const name = Option.liftThrowable(encodeURIComponent)(file.name)\n return Option.isNone(name)\n ? Stream.fail(new UploadFailed({ reason: 'Malformed', status: 0 }))\n : sent(\n file,\n options.url ?? '/_media/files',\n {\n ...options.headers,\n 'content-type': 'application/octet-stream',\n 'x-foldkit-file-name': name.value,\n 'x-foldkit-file-type': file.type === '' ? 'application/octet-stream' : file.type,\n },\n fileFactsOf,\n asset => FileUploaded.make({ asset }),\n )\n })\n"],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "foldkit-media",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Responsive images for Foldkit Plus: an image is a URL to write, through providers that share one width ladder.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"foldkit",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
],
|
|
79
79
|
"dependencies": {
|
|
80
80
|
"thumbhash": "^0.1.1",
|
|
81
|
-
"foldkit-surface": "0.
|
|
81
|
+
"foldkit-surface": "0.15.0"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
84
|
"effect": "^4.1.0",
|
|
@@ -86,9 +86,9 @@
|
|
|
86
86
|
"unpic": "^4.0.0"
|
|
87
87
|
},
|
|
88
88
|
"devDependencies": {
|
|
89
|
-
"@cloudflare/workers-types": "5.
|
|
90
|
-
"@effect/platform-node": "
|
|
91
|
-
"effect": "
|
|
89
|
+
"@cloudflare/workers-types": "5.20261112.1",
|
|
90
|
+
"@effect/platform-node": "4.1.4",
|
|
91
|
+
"effect": "4.1.4",
|
|
92
92
|
"miniflare": "4.20260730.0",
|
|
93
93
|
"sharp": "^0.35.5",
|
|
94
94
|
"tsdown": "^0.23.1",
|