@locker/cli 0.28.7 → 0.28.8

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/index.cjs.js CHANGED
@@ -2,4 +2,4 @@
2
2
  * Copyright (C) 2026 salesforce.com, inc.
3
3
  */
4
4
  'use strict';
5
- /*! version: 0.28.7 */
5
+ /*! version: 0.28.8 */
package/dist/index.mjs.js CHANGED
@@ -2,4 +2,4 @@
2
2
  * Copyright (C) 2026 salesforce.com, inc.
3
3
  */
4
4
 
5
- /*! version: 0.28.7 */
5
+ /*! version: 0.28.8 */
@@ -1369,7 +1369,7 @@
1369
1369
  // reads identically to what isGaterEnabledFeature stores (register and
1370
1370
  // deregister also accept the short form via fullName above). Frozen so a
1371
1371
  // consumer cannot mutate the shared array.
1372
- Object.freeze([`${FEATURE_NAME_PREFIX$LWS}changesSince.260`, `${FEATURE_NAME_PREFIX$LWS}changesSince.262`, `${FEATURE_NAME_PREFIX$LWS}changesSince.264`, `${FEATURE_NAME_PREFIX$LWS}htmlAnchorElementHrefValidation`, `${FEATURE_NAME_PREFIX$LWS}enableSandboxedSameOriginIframe`, `${FEATURE_NAME_PREFIX$LWS}xmlEntityAttackPrologScan`]);
1372
+ Object.freeze([`${FEATURE_NAME_PREFIX$LWS}changesSince.260`, `${FEATURE_NAME_PREFIX$LWS}changesSince.262`, `${FEATURE_NAME_PREFIX$LWS}changesSince.264`, `${FEATURE_NAME_PREFIX$LWS}htmlAnchorElementHrefValidation`, `${FEATURE_NAME_PREFIX$LWS}enableSandboxedSameOriginIframe`, `${FEATURE_NAME_PREFIX$LWS}iframeSrcSameOriginPreflightCheck`, `${FEATURE_NAME_PREFIX$LWS}xmlEntityAttackPrologScan`, `${FEATURE_NAME_PREFIX$LWS}blockWindowOpenSameOriginSameContext`]);
1373
1373
  function registerGaterEnabledFeatures$LWS(lockerGaterEnabledFeatures$LWS) {
1374
1374
  if (ArrayIsArray$LWS$1(lockerGaterEnabledFeatures$LWS)) {
1375
1375
  lockerGaterEnabledFeatures$LWS.forEach(feature$LWS => gaterEnabledFeatures$LWS.add(fullName$LWS(feature$LWS)));
@@ -1539,7 +1539,7 @@
1539
1539
  const PromiseResolve$LWS = PromiseCtor$LWS.resolve.bind(PromiseCtor$LWS);
1540
1540
  const PromiseReject$LWS = PromiseCtor$LWS.reject.bind(PromiseCtor$LWS);
1541
1541
  toSafeSet$LWS(new SetCtor$LWS$1());
1542
- /*! version: 0.28.7 */
1542
+ /*! version: 0.28.8 */
1543
1543
 
1544
1544
  /*!
1545
1545
  * Copyright (C) 2019 salesforce.com, inc.
@@ -2655,7 +2655,7 @@
2655
2655
  const XhrProtoResponseTextGetter$LWS = ObjectLookupOwnGetter$LWS$1(XhrProto$LWS, 'responseText');
2656
2656
  const XhrProtoStatusGetter$LWS = ObjectLookupOwnGetter$LWS$1(XhrProto$LWS, 'status');
2657
2657
  ObjectLookupOwnSetter$LWS(XhrProto$LWS, 'withCredentials');
2658
- /*! version: 0.28.7 */
2658
+ /*! version: 0.28.8 */
2659
2659
 
2660
2660
  /*!
2661
2661
  * Copyright (C) 2019 salesforce.com, inc.
@@ -2823,7 +2823,7 @@
2823
2823
  }
2824
2824
  return sanitized$LWS;
2825
2825
  }
2826
- /*! version: 0.28.7 */
2826
+ /*! version: 0.28.8 */
2827
2827
 
2828
2828
  /*!
2829
2829
  * Copyright (C) 2023 salesforce.com, inc.
@@ -2899,7 +2899,7 @@
2899
2899
  // swallow
2900
2900
  }
2901
2901
  const trusted = createPolicy('trusted', policyOptions);
2902
- /*! version: 0.28.7 */
2902
+ /*! version: 0.28.8 */
2903
2903
 
2904
2904
  /*!
2905
2905
  * Copyright (C) 2019 salesforce.com, inc.
@@ -3208,7 +3208,7 @@
3208
3208
  }
3209
3209
  return getSanitizerForConfig$LWS(sandboxKey$LWS, 'STRING_BLOB_HTML');
3210
3210
  }
3211
- /*! version: 0.28.7 */
3211
+ /*! version: 0.28.8 */
3212
3212
 
3213
3213
  /*!
3214
3214
  * Copyright (C) 2023 salesforce.com, inc.
@@ -3417,7 +3417,7 @@
3417
3417
  ReflectApply$LWS$1(ElementProtoSetAttributeNS$LWS, targetElement$LWS, [attributeNamespaceURI$LWS, attributeName$LWS, src$LWS]);
3418
3418
  };
3419
3419
  }
3420
- /*! version: 0.28.7 */
3420
+ /*! version: 0.28.8 */
3421
3421
 
3422
3422
  /*!
3423
3423
  * Copyright (C) 2019 salesforce.com, inc.
@@ -7893,7 +7893,7 @@
7893
7893
  // FOLLOWING `iframe.src = ...` (or setAttribute('src',...) etc.)
7894
7894
  // even though we cannot synchronously propagate the original
7895
7895
  // hostile-detection back to its triggering setter call.
7896
- if (isGaterEnabledFeature$LWS('changesSince.264') && isPoisonedIframe$LWS(this)) {
7896
+ if (isGaterEnabledFeature$LWS('iframeSrcSameOriginPreflightCheck') && isPoisonedIframe$LWS(this)) {
7897
7897
  throw new LockerSecurityError$LWS('HTMLIFrameElement is poisoned: a prior src assignment fetched a body containing an attack pattern. The iframe cannot be reused.');
7898
7898
  }
7899
7899
  const normalizedSrcValue$LWS = toSafeStringValue$LWS(value$LWS);
@@ -7944,7 +7944,7 @@
7944
7944
  // resolves. Pending URL is recorded normally so read paths
7945
7945
  // (iframe.src, getAttribute('src'), attributes['src'].value)
7946
7946
  // surface what sandbox code wrote.
7947
- if (isGaterEnabledFeature$LWS('changesSince.264') && urlString$LWS !== '' && urlString$LWS !== ABOUT_BLANK_TOKEN$LWS && isSameOriginURL$LWS(urlString$LWS)) {
7947
+ if (isGaterEnabledFeature$LWS('iframeSrcSameOriginPreflightCheck') && urlString$LWS !== '' && urlString$LWS !== ABOUT_BLANK_TOKEN$LWS && isSameOriginURL$LWS(urlString$LWS)) {
7948
7948
  // Cross-iframe rejection cache: if any prior pre-flight
7949
7949
  // (on this iframe or any other) detected an attack
7950
7950
  // pattern at this URL's pathname, refuse the assignment
@@ -12300,7 +12300,7 @@
12300
12300
  // Same-browsing-context targets (_self, _parent, _top) are excluded:
12301
12301
  // they navigate the current context (no new unsandboxed page), and the
12302
12302
  // existing URL validation (gate 262) already guards them.
12303
- if (isGaterEnabledFeature$LWS('changesSince.264') && !willOpenInSameBrowsingContext$LWS) {
12303
+ if (isGaterEnabledFeature$LWS('blockWindowOpenSameOriginSameContext') && !willOpenInSameBrowsingContext$LWS) {
12304
12304
  if (isSameOriginURL$LWS(resourceUrl$LWS)) {
12305
12305
  throw new LockerSecurityError$LWS('Cannot open same-origin URL in a new browsing context.');
12306
12306
  }
@@ -12821,7 +12821,7 @@
12821
12821
  const UIEventProtoBlockedProperties$LWS = ['rangeParent'];
12822
12822
  const WindowBlockedProperties$LWS = ['find', 'requestFileSystem', 'webkitRequestFileSystem'];
12823
12823
  const XSLTProcessorProtoBlockedProperties$LWS = ['transformToDocument', 'transformToFragment'];
12824
- /*! version: 0.28.7 */
12824
+ /*! version: 0.28.8 */
12825
12825
 
12826
12826
  /*!
12827
12827
  * Copyright (C) 2021 salesforce.com, inc.
@@ -12830,7 +12830,7 @@
12830
12830
  function getPdpSchema$LWS() {
12831
12831
  return pdpSchema$LWS;
12832
12832
  }
12833
- /*! version: 0.28.7 */
12833
+ /*! version: 0.28.8 */
12834
12834
 
12835
12835
  /*!
12836
12836
  * Copyright (C) 2019 salesforce.com, inc.
@@ -18222,7 +18222,7 @@
18222
18222
  // tools from mistaking the regexp or the replacement string for an
18223
18223
  // actual source mapping URL.
18224
18224
  /\/\/# sandbox(?=MappingURL=.*?\s*$)/, '//# source']);
18225
- sourceText$LWS = `\n//# LWS Version = "0.28.7"\n${sourceText$LWS}`;
18225
+ sourceText$LWS = `\n//# LWS Version = "0.28.8"\n${sourceText$LWS}`;
18226
18226
  return sourceType$LWS === 1 /* SourceType.Module */ && indexOfPragma$LWS(sourceText$LWS, 'use strict') === -1 ?
18227
18227
  // Append "'use strict'" to the extracted function body so it is
18228
18228
  // evaluated in strict mode.
@@ -18902,7 +18902,7 @@
18902
18902
  }
18903
18903
  toSafeMap$LWS$1(new MapCtor$LWS$1());
18904
18904
  toSafeSet$LWS(new SetCtor$LWS$1(['lightning/platformResourceLoader', 'lightning:platformResourceLoader', 'lightningmobileruntime/platformResourceLoader', 'lightningmobileruntime:platformResourceLoader']));
18905
- /*! version: 0.28.7 */
18905
+ /*! version: 0.28.8 */
18906
18906
 
18907
18907
  // Expose evaluateInSandbox on the window global so the browser harness page
18908
18908
  // (eval.html / component.html) can invoke it against source delivered by the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@locker/cli",
3
- "version": "0.28.7",
3
+ "version": "0.28.8",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "author": "Salesforce UI Security Team",
6
6
  "description": "Lightning Web Security CLI",
@@ -27,9 +27,9 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@babel/parser": "7.28.0",
30
- "@locker/rollup-plugin": "0.28.7",
31
- "@locker/sandbox": "0.28.7",
32
- "@locker/shared": "0.28.7",
30
+ "@locker/rollup-plugin": "0.28.8",
31
+ "@locker/sandbox": "0.28.8",
32
+ "@locker/shared": "0.28.8",
33
33
  "@lwc/engine-dom": "8.21.1",
34
34
  "@lwc/rollup-plugin": "8.21.1",
35
35
  "@rollup/plugin-commonjs": "21.1.0",
@@ -43,5 +43,5 @@
43
43
  "rollup-plugin-ts": "3.4.5",
44
44
  "yargs": "17.7.2"
45
45
  },
46
- "gitHead": "6c7b7db5dce155e5deb1c00b83bfe2c084bbc5d2"
46
+ "gitHead": "59e9a7dd6e507da1b9728504e5ac10d170f131fc"
47
47
  }