@fastly/compute-js-static-publish
Advanced tools
Changelog
[3.6.0] - 2023-02-28
Made testing against default content types easier
Exported types for default-content-types.cjs
It's now possible to do something like this:
import { defaultContentTypes, testFileContentType } from "@fastly/compute-js-static-publish/resources/default-content-types";
const testResult = testFileContentType(defaultContentTypes, '/path/to/file.json');
testResult.binary // false
testResult.type // application/json
Changelog
[3.5.0] - 2023-02-24
Changelog
[3.4.0] - 2023-02-16
Changelog
[3.3.0] - 2023-02-16
import
statements,
they can alternatively be exported as import()
calls.
At the current time, this feature requires a bundler that supports the import()
function, such as Webpack.Changelog
[3.2.1] - 2023-01-30
Changelog
[3.2.0] - 2023-01-13
type
field that had been missing from asset entryUint8Array
rather than ArrayBuffer