@garfish/browser-vm
Advanced tools
Comparing version 1.17.7-beta-20240506090621.0 to 1.18.0-beta-20240522085506.0
@@ -981,3 +981,5 @@ var __defProp = Object.defineProperty; | ||
const code = this.el.textContent || this.el.text || ""; | ||
if (!type || isJsType({ src, type })) { | ||
const excludeAssetFilter = this.sandbox.options.excludeAssetFilter; | ||
const excludeUrl = excludeAssetFilter == null ? void 0 : excludeAssetFilter(src); | ||
if ((!type || isJsType({ src, type })) && !excludeUrl) { | ||
const { baseUrl, namespace } = this.sandbox.options; | ||
@@ -1147,5 +1149,5 @@ if (src) { | ||
this.monitorChangesOfStyle(); | ||
} else if (this.is("link") && this.sandbox.options.disableLinkTransformToStyle !== true) { | ||
} else if (this.is("link")) { | ||
parentNode = this.findParentNodeInApp(context, "head"); | ||
if (this.el.getAttribute("rel") === "stylesheet" && this.el.href) { | ||
if (this.el.rel === "stylesheet" && this.el.href) { | ||
convertedNode = this.addDynamicLinkNode((styleNode) => { | ||
@@ -1510,3 +1512,3 @@ this.nativeAppend.call(parentNode, styleNode); | ||
this.initComplete = false; | ||
this.version = "1.17.7-beta-20240506090621.0"; | ||
this.version = "1.18.0-beta-20240522085506.0"; | ||
this.hooks = sandboxLifecycle(); | ||
@@ -1527,3 +1529,2 @@ this.deferClearEffects = /* @__PURE__ */ new Set(); | ||
strictIsolation: false, | ||
disableLinkTransformToStyle: false, | ||
disableCollect: false, | ||
@@ -1801,3 +1802,3 @@ el: () => null, | ||
name: "browser-vm", | ||
version: "1.17.7-beta-20240506090621.0", | ||
version: "1.18.0-beta-20240522085506.0", | ||
afterLoad(appInfo, appInstance) { | ||
@@ -1821,4 +1822,4 @@ var _a, _b, _c, _d, _e, _f, _g, _h; | ||
disableElementtiming: Boolean((_f = appInfo.sandbox) == null ? void 0 : _f.disableElementtiming), | ||
disableLinkTransformToStyle: Boolean((_g = appInfo.sandbox) == null ? void 0 : _g.disableLinkTransformToStyle), | ||
strictIsolation: Boolean((_h = appInfo.sandbox) == null ? void 0 : _h.strictIsolation), | ||
strictIsolation: Boolean((_g = appInfo.sandbox) == null ? void 0 : _g.strictIsolation), | ||
excludeAssetFilter: (_h = appInfo.sandbox) == null ? void 0 : _h.excludeAssetFilter, | ||
disableCollect: appInfo.cache === void 0 ? true : Boolean(appInfo.cache), | ||
@@ -1825,0 +1826,0 @@ el: () => appInstance.htmlNode, |
@@ -93,5 +93,5 @@ import { interfaces } from '@garfish/core'; | ||
disableElementtiming?: boolean; | ||
disableLinkTransformToStyle?: boolean; | ||
disableCollect?: boolean; | ||
modules?: Array<Module>; | ||
excludeAssetFilter?: (url: string) => boolean; | ||
addSourceList?: (sourceInfo: Array<{ | ||
@@ -127,2 +127,3 @@ tagName: string; | ||
interface AppInfo { | ||
excludeAssetFilter?: (url: string) => boolean; | ||
protectVariable?: PropertyKey[]; | ||
@@ -129,0 +130,0 @@ insulationVariable?: PropertyKey[]; |
@@ -970,3 +970,5 @@ var __defProp = Object.defineProperty; | ||
const code = this.el.textContent || this.el.text || ""; | ||
if (!type || (0, import_utils11.isJsType)({ src, type })) { | ||
const excludeAssetFilter = this.sandbox.options.excludeAssetFilter; | ||
const excludeUrl = excludeAssetFilter == null ? void 0 : excludeAssetFilter(src); | ||
if ((!type || (0, import_utils11.isJsType)({ src, type })) && !excludeUrl) { | ||
const { baseUrl, namespace } = this.sandbox.options; | ||
@@ -1136,5 +1138,5 @@ if (src) { | ||
this.monitorChangesOfStyle(); | ||
} else if (this.is("link") && this.sandbox.options.disableLinkTransformToStyle !== true) { | ||
} else if (this.is("link")) { | ||
parentNode = this.findParentNodeInApp(context, "head"); | ||
if (this.el.getAttribute("rel") === "stylesheet" && this.el.href) { | ||
if (this.el.rel === "stylesheet" && this.el.href) { | ||
convertedNode = this.addDynamicLinkNode((styleNode) => { | ||
@@ -1499,3 +1501,3 @@ this.nativeAppend.call(parentNode, styleNode); | ||
this.initComplete = false; | ||
this.version = "1.17.7-beta-20240506090621.0"; | ||
this.version = "1.18.0-beta-20240522085506.0"; | ||
this.hooks = sandboxLifecycle(); | ||
@@ -1516,3 +1518,2 @@ this.deferClearEffects = /* @__PURE__ */ new Set(); | ||
strictIsolation: false, | ||
disableLinkTransformToStyle: false, | ||
disableCollect: false, | ||
@@ -1790,3 +1791,3 @@ el: () => null, | ||
name: "browser-vm", | ||
version: "1.17.7-beta-20240506090621.0", | ||
version: "1.18.0-beta-20240522085506.0", | ||
afterLoad(appInfo, appInstance) { | ||
@@ -1810,4 +1811,4 @@ var _a, _b, _c, _d, _e, _f, _g, _h; | ||
disableElementtiming: Boolean((_f = appInfo.sandbox) == null ? void 0 : _f.disableElementtiming), | ||
disableLinkTransformToStyle: Boolean((_g = appInfo.sandbox) == null ? void 0 : _g.disableLinkTransformToStyle), | ||
strictIsolation: Boolean((_h = appInfo.sandbox) == null ? void 0 : _h.strictIsolation), | ||
strictIsolation: Boolean((_g = appInfo.sandbox) == null ? void 0 : _g.strictIsolation), | ||
excludeAssetFilter: (_h = appInfo.sandbox) == null ? void 0 : _h.excludeAssetFilter, | ||
disableCollect: appInfo.cache === void 0 ? true : Boolean(appInfo.cache), | ||
@@ -1814,0 +1815,0 @@ el: () => appInstance.htmlNode, |
{ | ||
"name": "@garfish/browser-vm", | ||
"version": "1.17.7-beta-20240506090621.0", | ||
"version": "1.18.0-beta-20240522085506.0", | ||
"description": "vm-sandbox module.", | ||
@@ -31,9 +31,9 @@ "keywords": [ | ||
"dependencies": { | ||
"@garfish/loader": "1.17.7-beta-20240506090621.0", | ||
"@garfish/core": "1.17.7-beta-20240506090621.0", | ||
"@garfish/hooks": "1.17.7-beta-20240506090621.0", | ||
"@garfish/utils": "1.17.7-beta-20240506090621.0" | ||
"@garfish/loader": "1.18.0-beta-20240522085506.0", | ||
"@garfish/core": "1.18.0-beta-20240522085506.0", | ||
"@garfish/hooks": "1.18.0-beta-20240522085506.0", | ||
"@garfish/utils": "1.18.0-beta-20240522085506.0" | ||
}, | ||
"devDependencies": { | ||
"@garfish/test-suite": "1.17.7-beta-20240506090621.0" | ||
"@garfish/test-suite": "1.18.0-beta-20240522085506.0" | ||
}, | ||
@@ -40,0 +40,0 @@ "publishConfig": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
135519
3813
+ Added@garfish/core@1.18.0-beta-20240522085506.0(transitive)
+ Added@garfish/hooks@1.18.0-beta-20240522085506.0(transitive)
+ Added@garfish/loader@1.18.0-beta-20240522085506.0(transitive)
+ Added@garfish/utils@1.18.0-beta-20240522085506.0(transitive)
- Removed@garfish/core@1.17.7-beta-20240506090621.0(transitive)
- Removed@garfish/hooks@1.17.7-beta-20240506090621.0(transitive)
- Removed@garfish/loader@1.17.7-beta-20240506090621.0(transitive)
- Removed@garfish/utils@1.17.7-beta-20240506090621.0(transitive)