runtime-compiler 2.1.2 → 2.1.4

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/package.json CHANGED
@@ -1,20 +1 @@
1
- {
2
- "name": "runtime-compiler",
3
- "version": "2.1.2",
4
- "description": "Universal compiler system",
5
- "keywords": [],
6
- "repository": {},
7
- "homepage": "",
8
- "license": "MIT",
9
- "type": "module",
10
- "exports": {
11
- "./call": "./call.js",
12
- "./config": "./config/index.js",
13
- "./utils": "./utils.js",
14
- "./config/loader/hydrate": "./config/loader/hydrate.js",
15
- ".": "./index.js",
16
- "./config/mode/build": "./config/mode/build.js",
17
- "./config/mode/hydrate": "./config/mode/hydrate.js",
18
- "./config/loader/build": "./config/loader/build.js"
19
- }
20
- }
1
+ {"name":"runtime-compiler","version":"2.1.4","description":"Universal compiler system","keywords":[],"repository":{},"homepage":"","license":"MIT","type":"module","exports":{"./call":"./call.js","./config/loader/build":"./config/loader/build.js",".":"./index.js","./config":"./config/index.js","./config/mode/hydrate":"./config/mode/hydrate.js","./scope":"./scope.js","./utils":"./utils.js","./config/loader/hydrate":"./config/loader/hydrate.js","./config/mode/build":"./config/mode/build.js"}}
package/scope.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ export type Scope = [nextId: number];
2
+ export declare const init: () => Scope;
3
+ export declare const nextId: (scope: Scope) => string;
4
+ export declare const idCount: (scope: Scope) => number;
package/scope.js ADDED
@@ -0,0 +1 @@
1
+ export let init=()=>[0];export let nextId=e=>`l`+ e[0]++;export let idCount=e=>e[0];
package/utils.d.ts CHANGED
@@ -16,3 +16,4 @@ export declare const injectArgsList: (list: any[]) => string;
16
16
  * Async function constructor
17
17
  */
18
18
  export declare const AsyncFunction: typeof Function;
19
+ export * as scope from "./scope.js";
package/utils.js CHANGED
@@ -1 +1 @@
1
- import{injectDependency}from"./index.js";export let noOp=()=>``;export let injectConst=i=>injectDependency(JSON.stringify(i));export let injectArgsList=e=>e.length!==1?`...`+injectConst(e):injectConst(e[0]);export let AsyncFunction=(async()=>{}).constructor;
1
+ import{injectDependency}from"./index.js";export let noOp=()=>``;export let injectConst=i=>injectDependency(JSON.stringify(i));export let injectArgsList=e=>e.length!==1?`...`+injectConst(e):injectConst(e[0]);export let AsyncFunction=(async()=>{}).constructor;export*as scope from"./scope.js";