@mercuryworkshop/scramjet 2.0.67-alpha → 2.0.67-alpha.1
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.js +4 -4
- package/dist/scramjet.js.map +1 -1
- package/dist/scramjet.mjs +4 -4
- package/dist/scramjet.mjs.map +1 -1
- package/dist/scramjet_bundled.js +4 -4
- package/dist/scramjet_bundled.js.map +1 -1
- package/dist/scramjet_bundled.mjs +4 -4
- 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/rewriters/worker.d.ts +1 -1
- package/dist/types/shared/snapshot.d.ts +1 -0
- package/dist/types/typesEntry.d.ts +5 -0
- package/package.json +3 -3
- package/lib/types.d.ts +0 -20
|
@@ -8,6 +8,7 @@ export declare class SingletonBox {
|
|
|
8
8
|
documents: Map<Document, ScramjetClient>;
|
|
9
9
|
locations: Map<Location, ScramjetClient>;
|
|
10
10
|
writeRewriters: WeakMap<Document, IncrementalHtmlRewriter>;
|
|
11
|
+
unproxy: Map<any, any>;
|
|
11
12
|
ctors: Record<string, Function[]>;
|
|
12
13
|
sourcemaps: SourceMaps;
|
|
13
14
|
constructor(ownerclient: ScramjetClient);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ScramjetContext } from "@/shared";
|
|
2
2
|
import { URLMeta } from "@rewriters/url";
|
|
3
|
-
export declare function rewriteWorkers(context: ScramjetContext, js: string | Uint8Array,
|
|
3
|
+
export declare function rewriteWorkers(context: ScramjetContext, js: string | Uint8Array, isModule: boolean, url: string, meta: URLMeta): string;
|
|
@@ -3,6 +3,7 @@ export declare const String_fromCodePoint: (...codePoints: number[]) => string;
|
|
|
3
3
|
export declare const String_fromCharCode: (...codes: number[]) => string;
|
|
4
4
|
export declare const Number: NumberConstructor;
|
|
5
5
|
export declare const Number_parseInt: (string: string, radix?: number) => number;
|
|
6
|
+
export declare const Number_isSafeInteger: (number: unknown) => boolean;
|
|
6
7
|
export declare const Object_keys: {
|
|
7
8
|
(o: object): string[];
|
|
8
9
|
(o: {}): 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.1",
|
|
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",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
"exports": {
|
|
15
15
|
".": {
|
|
16
|
-
"types": "./dist/types/
|
|
16
|
+
"types": "./dist/types/typesEntry.d.ts",
|
|
17
17
|
"default": "./dist/scramjet-external.mjs"
|
|
18
18
|
},
|
|
19
19
|
"./path": {
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"rewriter:build": "cd rewriter/wasm/ && bash build.sh && cd ../../",
|
|
86
86
|
"dev": "node server.js",
|
|
87
87
|
"dev:debug": "DEBUG=1 node server.js",
|
|
88
|
-
"pub": "
|
|
88
|
+
"pub": "pnpm publish --no-git-checks --access public",
|
|
89
89
|
"format": "prettier --write .",
|
|
90
90
|
"format:docs": "remark \"docs/**/*.{md,mdx}\" --output",
|
|
91
91
|
"lint": "eslint ./src/",
|
package/lib/types.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as controller from "../dist/types/controller/index.ts";
|
|
2
|
-
import { ScramjetConfig } from "../dist/types/types.ts";
|
|
3
|
-
import * as worker from "../dist/types/worker";
|
|
4
|
-
import * as shared from "../dist/types/shared";
|
|
5
|
-
import * as client from "../dist/types/shared";
|
|
6
|
-
|
|
7
|
-
declare global {
|
|
8
|
-
function $scramjetLoadController(): typeof controller;
|
|
9
|
-
function $scramjetLoadWorker(): typeof worker;
|
|
10
|
-
function $scramjetLoadClient(config: ScramjetConfig): typeof client;
|
|
11
|
-
function $scramjetLoadShared(): typeof shared;
|
|
12
|
-
/// load any file from scramjet source
|
|
13
|
-
function $scramjetRequire(path: string): any;
|
|
14
|
-
var $scramjetVersion: {
|
|
15
|
-
build: string;
|
|
16
|
-
version: string;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export type * from "../dist/types/index";
|