@builder.io/sdk-svelte 1.0.25 → 1.0.26
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/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/constants/sdk-version.js +1 -1
- package/lib/browser/functions/evaluate/node-runtime/init.d.ts +2 -15
- package/lib/browser/functions/evaluate/node-runtime/init.js +2 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/constants/sdk-version.js +1 -1
- package/lib/edge/functions/evaluate/node-runtime/init.d.ts +2 -15
- package/lib/edge/functions/evaluate/node-runtime/init.js +2 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/constants/sdk-version.js +1 -1
- package/lib/node/functions/evaluate/node-runtime/init.d.ts +2 -15
- package/lib/node/functions/evaluate/node-runtime/init.js +2 -1
- package/package.json +1 -1
- package/src/constants/sdk-version.ts +1 -1
- package/src/functions/evaluate/node-runtime/init.ts +4 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.
|
|
1
|
+
export declare const SDK_VERSION = "1.0.26";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.0.
|
|
1
|
+
export const SDK_VERSION = "1.0.26";
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file:
|
|
3
|
-
* - imports `isolated-vm`, which can only be made from a file that never runs
|
|
4
|
-
* on the client (e.g. Next's `_document.tsx`)
|
|
5
|
-
* - stores the ivm instance in a global variable using `setIvm`
|
|
6
|
-
*
|
|
7
|
-
* This is needed for when bundlers/meta-frameworks are not able to reliably
|
|
8
|
-
* import the `isolated-vm` package using our `safeDynamicRequire` trick.
|
|
9
|
-
*
|
|
10
|
-
* The `isolated-vm` import must exist in this separate file, or it will end up
|
|
11
|
-
* in the SDK's main entry point, causing errors for users.
|
|
12
|
-
*/
|
|
13
|
-
import ivm from 'isolated-vm';
|
|
14
1
|
import type { IsolateOptions } from 'isolated-vm';
|
|
15
2
|
/**
|
|
16
3
|
* This function initializes the SDK on a Node server. It handles importing the
|
|
@@ -21,6 +8,6 @@ import type { IsolateOptions } from 'isolated-vm';
|
|
|
21
8
|
* - The NextJS Pages router's `_document.tsx`
|
|
22
9
|
* - Your Remix route's `loader`
|
|
23
10
|
*/
|
|
24
|
-
export declare const initializeNodeRuntime: (
|
|
25
|
-
ivmIsolateOptions?:
|
|
11
|
+
export declare const initializeNodeRuntime: (args?: {
|
|
12
|
+
ivmIsolateOptions?: IsolateOptions;
|
|
26
13
|
}) => void;
|
|
@@ -21,6 +21,7 @@ import { setIvm } from './node-runtime';
|
|
|
21
21
|
* - The NextJS Pages router's `_document.tsx`
|
|
22
22
|
* - Your Remix route's `loader`
|
|
23
23
|
*/
|
|
24
|
-
export const initializeNodeRuntime = (
|
|
24
|
+
export const initializeNodeRuntime = (args) => {
|
|
25
|
+
const { ivmIsolateOptions } = args || {};
|
|
25
26
|
setIvm(ivm, ivmIsolateOptions);
|
|
26
27
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.
|
|
1
|
+
export declare const SDK_VERSION = "1.0.26";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.0.
|
|
1
|
+
export const SDK_VERSION = "1.0.26";
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file:
|
|
3
|
-
* - imports `isolated-vm`, which can only be made from a file that never runs
|
|
4
|
-
* on the client (e.g. Next's `_document.tsx`)
|
|
5
|
-
* - stores the ivm instance in a global variable using `setIvm`
|
|
6
|
-
*
|
|
7
|
-
* This is needed for when bundlers/meta-frameworks are not able to reliably
|
|
8
|
-
* import the `isolated-vm` package using our `safeDynamicRequire` trick.
|
|
9
|
-
*
|
|
10
|
-
* The `isolated-vm` import must exist in this separate file, or it will end up
|
|
11
|
-
* in the SDK's main entry point, causing errors for users.
|
|
12
|
-
*/
|
|
13
|
-
import ivm from 'isolated-vm';
|
|
14
1
|
import type { IsolateOptions } from 'isolated-vm';
|
|
15
2
|
/**
|
|
16
3
|
* This function initializes the SDK on a Node server. It handles importing the
|
|
@@ -21,6 +8,6 @@ import type { IsolateOptions } from 'isolated-vm';
|
|
|
21
8
|
* - The NextJS Pages router's `_document.tsx`
|
|
22
9
|
* - Your Remix route's `loader`
|
|
23
10
|
*/
|
|
24
|
-
export declare const initializeNodeRuntime: (
|
|
25
|
-
ivmIsolateOptions?:
|
|
11
|
+
export declare const initializeNodeRuntime: (args?: {
|
|
12
|
+
ivmIsolateOptions?: IsolateOptions;
|
|
26
13
|
}) => void;
|
|
@@ -21,6 +21,7 @@ import { setIvm } from './node-runtime';
|
|
|
21
21
|
* - The NextJS Pages router's `_document.tsx`
|
|
22
22
|
* - Your Remix route's `loader`
|
|
23
23
|
*/
|
|
24
|
-
export const initializeNodeRuntime = (
|
|
24
|
+
export const initializeNodeRuntime = (args) => {
|
|
25
|
+
const { ivmIsolateOptions } = args || {};
|
|
25
26
|
setIvm(ivm, ivmIsolateOptions);
|
|
26
27
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.0.
|
|
1
|
+
export declare const SDK_VERSION = "1.0.26";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.0.
|
|
1
|
+
export const SDK_VERSION = "1.0.26";
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file:
|
|
3
|
-
* - imports `isolated-vm`, which can only be made from a file that never runs
|
|
4
|
-
* on the client (e.g. Next's `_document.tsx`)
|
|
5
|
-
* - stores the ivm instance in a global variable using `setIvm`
|
|
6
|
-
*
|
|
7
|
-
* This is needed for when bundlers/meta-frameworks are not able to reliably
|
|
8
|
-
* import the `isolated-vm` package using our `safeDynamicRequire` trick.
|
|
9
|
-
*
|
|
10
|
-
* The `isolated-vm` import must exist in this separate file, or it will end up
|
|
11
|
-
* in the SDK's main entry point, causing errors for users.
|
|
12
|
-
*/
|
|
13
|
-
import ivm from 'isolated-vm';
|
|
14
1
|
import type { IsolateOptions } from 'isolated-vm';
|
|
15
2
|
/**
|
|
16
3
|
* This function initializes the SDK on a Node server. It handles importing the
|
|
@@ -21,6 +8,6 @@ import type { IsolateOptions } from 'isolated-vm';
|
|
|
21
8
|
* - The NextJS Pages router's `_document.tsx`
|
|
22
9
|
* - Your Remix route's `loader`
|
|
23
10
|
*/
|
|
24
|
-
export declare const initializeNodeRuntime: (
|
|
25
|
-
ivmIsolateOptions?:
|
|
11
|
+
export declare const initializeNodeRuntime: (args?: {
|
|
12
|
+
ivmIsolateOptions?: IsolateOptions;
|
|
26
13
|
}) => void;
|
|
@@ -21,6 +21,7 @@ import { setIvm } from './node-runtime';
|
|
|
21
21
|
* - The NextJS Pages router's `_document.tsx`
|
|
22
22
|
* - Your Remix route's `loader`
|
|
23
23
|
*/
|
|
24
|
-
export const initializeNodeRuntime = (
|
|
24
|
+
export const initializeNodeRuntime = (args) => {
|
|
25
|
+
const { ivmIsolateOptions } = args || {};
|
|
25
26
|
setIvm(ivm, ivmIsolateOptions);
|
|
26
27
|
};
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.0.
|
|
1
|
+
export const SDK_VERSION = "1.0.26"
|
|
@@ -23,10 +23,11 @@ import type { IsolateOptions } from 'isolated-vm';
|
|
|
23
23
|
* - The NextJS Pages router's `_document.tsx`
|
|
24
24
|
* - Your Remix route's `loader`
|
|
25
25
|
*/
|
|
26
|
-
export const initializeNodeRuntime = ({
|
|
27
|
-
ivmIsolateOptions
|
|
28
|
-
}: {
|
|
26
|
+
export const initializeNodeRuntime = (args?: {
|
|
29
27
|
ivmIsolateOptions?: IsolateOptions;
|
|
30
28
|
}) => {
|
|
29
|
+
const {
|
|
30
|
+
ivmIsolateOptions
|
|
31
|
+
} = args || {};
|
|
31
32
|
setIvm(ivm, ivmIsolateOptions);
|
|
32
33
|
}
|