@vleap/warps 3.0.0-alpha.25 → 3.0.0-alpha.27

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@vleap/warps",
3
- "version": "3.0.0-alpha.25",
3
+ "version": "3.0.0-alpha.27",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -17,26 +17,21 @@
17
17
  "files": [
18
18
  "dist"
19
19
  ],
20
- "peerDependencies": {
21
- "@multiversx/sdk-core": "^14.0.2",
22
- "vm2": "^3.9.17"
23
- },
24
20
  "devDependencies": {
25
- "@multiversx/sdk-core": "^14.2.1",
26
21
  "@types/jest": "^29.5.14",
27
22
  "jest": "^30.0.0",
28
23
  "jest-environment-jsdom": "^30.0.0",
29
24
  "jest-fetch-mock": "^3.0.3",
30
25
  "ts-jest": "^29.4.0",
31
26
  "tsup": "^8.5.0",
32
- "typescript": "^5.8.3",
33
- "vm2": "^3.9.19"
27
+ "typescript": "^5.8.3"
34
28
  },
35
29
  "publishConfig": {
36
30
  "access": "public"
37
31
  },
38
32
  "dependencies": {
39
- "ajv": "^8.17.1",
40
- "qr-code-styling": "^1.9.2"
33
+ "@vleap/warps-adapter-multiversx": "^0.2.0-alpha.0",
34
+ "@vleap/warps-core": "^0.2.0-alpha.0",
35
+ "ajv": "^8.17.1"
41
36
  }
42
37
  }
@@ -1 +0,0 @@
1
- var d=(a=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(a,{get:(b,c)=>(typeof require<"u"?require:b)[c]}):a)(function(a){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+a+'" is not supported')});export{d as a};
@@ -1,11 +0,0 @@
1
- import{a as l}from"./chunk-3SAEGOMQ.mjs";var u=async(n,i)=>{if(typeof window>"u"){let s;try{s=l("vm2").VM}catch{throw new Error('The optional dependency "vm2" is not installed. To use runInVm in Node.js, please install vm2: npm install vm2 --save. This is not required for browser usage.')}let e=new s({timeout:1e3,sandbox:{result:i},eval:!1,wasm:!1});return n.trim().startsWith("(")&&n.includes("=>")?e.run(`(${n})(result)`):null}return new Promise((s,e)=>{try{let o=new Blob([`
2
- self.onmessage = function(e) {
3
- try {
4
- const result = e.data;
5
- const output = (${n})(result);
6
- self.postMessage({ result: output });
7
- } catch (error) {
8
- self.postMessage({ error: error.toString() });
9
- }
10
- };
11
- `],{type:"application/javascript"}),a=URL.createObjectURL(o),r=new Worker(a);r.onmessage=function(t){t.data.error?e(new Error(t.data.error)):s(t.data.result),r.terminate(),URL.revokeObjectURL(a)},r.onerror=function(t){e(new Error(`Error in transform: ${t.message}`)),r.terminate(),URL.revokeObjectURL(a)},r.postMessage(i)}catch(o){return e(o)}})};export{u as runInVm};