@style-this/core 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/compiler.cjs +14 -2
- package/dist/compiler.d.cts +1 -0
- package/dist/compiler.d.cts.map +1 -1
- package/package.json +11 -11
package/dist/compiler.d.cts
CHANGED
|
@@ -19,6 +19,7 @@ interface Transformer extends Omit<Transformer$1, "transform"> {
|
|
|
19
19
|
}
|
|
20
20
|
declare const Transformer: new (opts: {
|
|
21
21
|
cwd: string;
|
|
22
|
+
ignoredImports: string[];
|
|
22
23
|
loadFile: (filepath: string, importer: string) => Promise<[string, string]>;
|
|
23
24
|
cssFileStore: Map<string, string>;
|
|
24
25
|
exportCache: Record<string, Record<string, any>>;
|
package/dist/compiler.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compiler.d.cts","names":["Transformer","Symbol","dispose","Promise","initialize","InitInput","RequestInfo","URL","Response","BufferSource","WebAssembly","Module","InitOutput","Memory","Table","SyncInitInput","initSync","__wbg_init","default"],"sources":["../native/pkg/style_this.d.ts","../src/compiler.ts"],"sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n\nexport class Transformer {\n free(): void;\n [Symbol.dispose](): void;\n constructor(opts: any);\n transform(code: string, filepath: string, import_source?: string | null): Promise<any | undefined>;\n}\n\nexport function initialize(): void;\n\nexport type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;\n\nexport interface InitOutput {\n readonly memory: WebAssembly.Memory;\n readonly __wbg_transformer_free: (a: number, b: number) => void;\n readonly transformer_new: (a: any) => number;\n readonly transformer_transform: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;\n readonly initialize: () => void;\n readonly wasm_bindgen__convert__closures_____invoke__hfe6a4a76b5e0fdbe: (a: number, b: number, c: any) => void;\n readonly wasm_bindgen__closure__destroy__hc2d6b7cd70f3b545: (a: number, b: number) => void;\n readonly wasm_bindgen__convert__closures_____invoke__h3c226b569f92c761: (a: number, b: number, c: any, d: any) => void;\n readonly __wbindgen_malloc: (a: number, b: number) => number;\n readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;\n readonly __wbindgen_exn_store: (a: number) => void;\n readonly __externref_table_alloc: () => number;\n readonly __wbindgen_externrefs: WebAssembly.Table;\n readonly __wbindgen_free: (a: number, b: number, c: number) => void;\n readonly __wbindgen_start: () => void;\n}\n\nexport type SyncInitInput = BufferSource | WebAssembly.Module;\n\n/**\n* Instantiates the given `module`, which can either be bytes or\n* a precompiled `WebAssembly.Module`.\n*\n* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.\n*\n* @returns {InitOutput}\n*/\nexport function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;\n\n/**\n* If `module_or_path` is {RequestInfo} or {URL}, makes a request and\n* for everything else, calls `WebAssembly.instantiate` directly.\n*\n* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.\n*\n* @returns {Promise<InitOutput>}\n*/\nexport default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;\n"],"mappings":";;AAGA;;cAAaA,aAAAA;;ECEb,CDAGC,MAAAA,CAAOC,OAAAA,GCAmB,EAAA,IAAA;EAAa,WAAA,CAAA,IAAA,EAAA,GAAA;EAKrC,SAAA,CAAA,IAAA,EAAA,MAAA,EAAA,QAAA,EAAA,MAAA,EAAA,aAAA,CAAA,EAAA,MAAA,GAAA,IAAA,CAAA,EDHuEC,OCGvE,CAAA,GAAA,GAAA,SAAA,CAAA;;;;ADPQH,UCEI,WAAA,SAAoB,IDA3BE,CCAgC,aDEkCC,EAAO,WAAA,CAAA,CAAA;oECG9E;;;IALY,iBAAY,EAAA,MAAA,EAAA;EAAa,CAAA,GAAA,SAAA,CAAA;;AAAL,cAgBxB,WAhBwB,EAAA,KAAA,IAAA,EAAA;EAAI,GAAA,EAAA,MAAA;EAgB5B,QAAA,EAAA,CAAA,
|
|
1
|
+
{"version":3,"file":"compiler.d.cts","names":["Transformer","Symbol","dispose","Promise","initialize","InitInput","RequestInfo","URL","Response","BufferSource","WebAssembly","Module","InitOutput","Memory","Table","SyncInitInput","initSync","__wbg_init","default"],"sources":["../native/pkg/style_this.d.ts","../src/compiler.ts"],"sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n\nexport class Transformer {\n free(): void;\n [Symbol.dispose](): void;\n constructor(opts: any);\n transform(code: string, filepath: string, import_source?: string | null): Promise<any | undefined>;\n}\n\nexport function initialize(): void;\n\nexport type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;\n\nexport interface InitOutput {\n readonly memory: WebAssembly.Memory;\n readonly __wbg_transformer_free: (a: number, b: number) => void;\n readonly transformer_new: (a: any) => number;\n readonly transformer_transform: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;\n readonly initialize: () => void;\n readonly wasm_bindgen__convert__closures_____invoke__hfe6a4a76b5e0fdbe: (a: number, b: number, c: any) => void;\n readonly wasm_bindgen__closure__destroy__hc2d6b7cd70f3b545: (a: number, b: number) => void;\n readonly wasm_bindgen__convert__closures_____invoke__h3c226b569f92c761: (a: number, b: number, c: any, d: any) => void;\n readonly __wbindgen_malloc: (a: number, b: number) => number;\n readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;\n readonly __wbindgen_exn_store: (a: number) => void;\n readonly __externref_table_alloc: () => number;\n readonly __wbindgen_externrefs: WebAssembly.Table;\n readonly __wbindgen_free: (a: number, b: number, c: number) => void;\n readonly __wbindgen_start: () => void;\n}\n\nexport type SyncInitInput = BufferSource | WebAssembly.Module;\n\n/**\n* Instantiates the given `module`, which can either be bytes or\n* a precompiled `WebAssembly.Module`.\n*\n* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.\n*\n* @returns {InitOutput}\n*/\nexport function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;\n\n/**\n* If `module_or_path` is {RequestInfo} or {URL}, makes a request and\n* for everything else, calls `WebAssembly.instantiate` directly.\n*\n* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.\n*\n* @returns {Promise<InitOutput>}\n*/\nexport default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;\n"],"mappings":";;AAGA;;cAAaA,aAAAA;;ECEb,CDAGC,MAAAA,CAAOC,OAAAA,GCAmB,EAAA,IAAA;EAAa,WAAA,CAAA,IAAA,EAAA,GAAA;EAKrC,SAAA,CAAA,IAAA,EAAA,MAAA,EAAA,QAAA,EAAA,MAAA,EAAA,aAAA,CAAA,EAAA,MAAA,GAAA,IAAA,CAAA,EDHuEC,OCGvE,CAAA,GAAA,GAAA,SAAA,CAAA;;;;ADPQH,UCEI,WAAA,SAAoB,IDA3BE,CCAgC,aDEkCC,EAAO,WAAA,CAAA,CAAA;oECG9E;;;IALY,iBAAY,EAAA,MAAA,EAAA;EAAa,CAAA,GAAA,SAAA,CAAA;;AAAL,cAgBxB,WAhBwB,EAAA,KAAA,IAAA,EAAA;EAAI,GAAA,EAAA,MAAA;EAgB5B,cASI,EAAA,MAAA,EAAA;EALmC,QAAA,EAAA,CAAA,QAAA,EAAA,MAAA,EAAA,QAAA,EAAA,MAAA,EAAA,GAAA,OAAA,CAAA,CAAA,MAAA,EAAA,MAAA,CAAA,CAAA;EACpC,YAAA,EAAA,GAAA,CAAA,MAAA,EAAA,MAAA,CAAA;EACc,WAAA,EAAf,MAAe,CAAA,MAAA,EAAA,MAAA,CAAA,MAAA,EAAA,GAAA,CAAA,CAAA;EAAf,YAAA,EAAA,MAAA;EAGT,uBAAA,CAAA,EAAA,OAAA;CAAW,EAAA,GAAX,WAAW;AAEJ,cAAA,mBAAmB,EAAA,GAAA,GAAA,OAAA,CAAA,IAAA,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@style-this/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "CSS-in-JS library for the modern web - core module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -19,16 +19,6 @@
|
|
|
19
19
|
},
|
|
20
20
|
"./package.json": "./package.json"
|
|
21
21
|
},
|
|
22
|
-
"scripts": {
|
|
23
|
-
"build": "pnpm build:native && pnpm build:js",
|
|
24
|
-
"build:native": "cd native && wasm-pack build -t web",
|
|
25
|
-
"build:js": "tsdown",
|
|
26
|
-
"dev": "tsdown --watch",
|
|
27
|
-
"lint": "eslint",
|
|
28
|
-
"lint:fix": "pnpm lint --fix",
|
|
29
|
-
"test": "vitest run",
|
|
30
|
-
"test:watch": "vitest"
|
|
31
|
-
},
|
|
32
22
|
"devDependencies": {
|
|
33
23
|
"@eslint/js": "9.39.1",
|
|
34
24
|
"@vitest/eslint-plugin": "1.4.1",
|
|
@@ -39,5 +29,15 @@
|
|
|
39
29
|
},
|
|
40
30
|
"dependencies": {
|
|
41
31
|
"@rollup/plugin-wasm": "6.2.2"
|
|
32
|
+
},
|
|
33
|
+
"scripts": {
|
|
34
|
+
"build": "pnpm build:native && pnpm build:js",
|
|
35
|
+
"build:native": "cd native && wasm-pack build -t web",
|
|
36
|
+
"build:js": "tsdown",
|
|
37
|
+
"dev": "tsdown --watch",
|
|
38
|
+
"lint": "eslint",
|
|
39
|
+
"lint:fix": "pnpm lint --fix",
|
|
40
|
+
"test": "vitest run",
|
|
41
|
+
"test:watch": "vitest"
|
|
42
42
|
}
|
|
43
43
|
}
|