@mercuryworkshop/scramjet 2.0.67-alpha.1 → 2.0.67-alpha.2
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/scramjet-external.mjs +1 -0
- package/dist/scramjet.js +5 -5
- package/dist/scramjet.js.map +1 -1
- package/dist/scramjet.mjs +5 -5
- package/dist/scramjet.mjs.map +1 -1
- package/dist/scramjet.wasm +0 -0
- package/dist/scramjet_bundled.js +5 -5
- package/dist/scramjet_bundled.js.map +1 -1
- package/dist/scramjet_bundled.mjs +5 -5
- package/dist/scramjet_bundled.mjs.map +1 -1
- package/dist/temp-types-build/index.js +3 -3
- package/dist/temp-types-build/index.js.map +1 -1
- package/dist/types/client/singletonbox.d.ts +1 -0
- package/dist/types/shared/mime.d.ts +6 -0
- package/dist/types/shared/rewriters/worker.d.ts +1 -1
- package/package.json +2 -3
|
@@ -6,6 +6,7 @@ export declare class SingletonBox {
|
|
|
6
6
|
clients: ScramjetClient[];
|
|
7
7
|
globals: Map<Self, ScramjetClient>;
|
|
8
8
|
documents: Map<Document, ScramjetClient>;
|
|
9
|
+
histories: Map<History, ScramjetClient>;
|
|
9
10
|
locations: Map<Location, ScramjetClient>;
|
|
10
11
|
writeRewriters: WeakMap<Document, IncrementalHtmlRewriter>;
|
|
11
12
|
unproxy: Map<any, any>;
|
|
@@ -32,6 +32,12 @@ export declare function isJavascriptMimeType(mime: string | ParsedMimeType): boo
|
|
|
32
32
|
* JavaScript MIME type essence strings (not necessarily a full parsed MIME type).
|
|
33
33
|
*/
|
|
34
34
|
export declare function isJavascriptMimeTypeEssenceMatch(s: string): boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Script block type string for a `<script>` element (prepare a script).
|
|
37
|
+
* Resolves `type` when present; otherwise maps obsolete `language` to `text/…`.
|
|
38
|
+
* @see https://html.spec.whatwg.org/multipage/scripting.html#prepare-a-script
|
|
39
|
+
*/
|
|
40
|
+
export declare function getScriptBlockTypeString(type: string | null | undefined, language: string | null | undefined, hasTypeAttribute?: boolean, hasLanguageAttribute?: boolean): string;
|
|
35
41
|
/**
|
|
36
42
|
* Whether a `<script type="...">` value denotes executable JavaScript
|
|
37
43
|
* (classic or module script), not a data block or import map.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ScramjetContext } from "@/shared";
|
|
2
2
|
import { URLMeta } from "@rewriters/url";
|
|
3
|
-
export declare function rewriteWorkers(
|
|
3
|
+
export declare function rewriteWorkers(js: string | Uint8Array, url: string, context: ScramjetContext, meta: URLMeta, isModule: boolean): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mercuryworkshop/scramjet",
|
|
3
|
-
"version": "2.0.67-alpha.
|
|
3
|
+
"version": "2.0.67-alpha.2",
|
|
4
4
|
"license": "AGPL-3.0-only",
|
|
5
5
|
"description": "An experimental web proxy that aims to be the successor to Ultraviolet",
|
|
6
6
|
"type": "module",
|
|
@@ -93,7 +93,6 @@
|
|
|
93
93
|
"lint:workflows": "actionlint .github/workflows/*.yml",
|
|
94
94
|
"lint:all": "npm run lint && npm run lint:workflows",
|
|
95
95
|
"test": "npm run test:package",
|
|
96
|
-
"test:package": "ava tests/ci/packageValidation.js"
|
|
97
|
-
"preinstall": "npx only-allow pnpm"
|
|
96
|
+
"test:package": "ava tests/ci/packageValidation.js"
|
|
98
97
|
}
|
|
99
98
|
}
|