@poe-platform/safe-js 0.1.458 → 0.1.459

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.
@@ -19916,6 +19916,7 @@ function getStringMember(value, property, budget) {
19916
19916
  return createSandboxClosure({
19917
19917
  sandbox: true,
19918
19918
  name: `String#${property}`,
19919
+ ...property === "trimStart" || property === "trimEnd" ? { guest: true, name: property, length: 0 } : {},
19919
19920
  ...property === "toLocaleLowerCase" || property === "toLocaleUpperCase" ? { guest: true, name: property, length: 0 } : {},
19920
19921
  ...property === "localeCompare" ? { length: 1 } : {},
19921
19922
  ...property === "isWellFormed" || property === "toWellFormed" ? { length: 0 } : {},
@@ -20746,8 +20747,11 @@ function createPrimitiveConstructor(options, budget) {
20746
20747
  call: (_args, context) => budget.allocateString(String(primitiveReceiver(context?.thisValue, kind)))
20747
20748
  })
20748
20749
  );
20749
- if (kind === "string")
20750
+ if (kind === "string") {
20750
20751
  for (const name of stringMethodNames) methods3.set(name, getStringMember("", name, budget));
20752
+ methods3.set("trimLeft", methods3.get("trimStart"));
20753
+ methods3.set("trimRight", methods3.get("trimEnd"));
20754
+ }
20751
20755
  }
20752
20756
  for (const [name, value] of methods3)
20753
20757
  Object.defineProperty(prototype, name, { value, writable: true, configurable: true });
@@ -56299,4 +56303,4 @@ The above copyright notice and this permission notice shall be included in all c
56299
56303
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
56300
56304
 
56301
56305
  */
56302
- //# sourceMappingURL=chunk-GPAQUL2B.js.map
56306
+ //# sourceMappingURL=chunk-7A542ATS.js.map