New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

js-interpreter

Package Overview
Dependencies
Maintainers
0
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-interpreter - npm Package Versions

2345

6.0.0

Diff

Changelog

Source

[6.0.0] - 2025-01-21

Commit: d5b0311dfde3cf581a51adf4ec7fd6777e0c240e

Added

  • Add setGlobalScope function
  • Add 'window' as fallback for globalThis or this.
  • Add getStatus function.
  • Add trailing commas in obj literals

Removed

  • Remove unused tokTypes array from Acorn.
  • Remove unused 'tokenize' function from Acorn.
  • Remove two obsolete unused properties from Acorn.
  • Remove support for ES3 from Acorn
  • Remove ES6 's' and 'y' flags from Acorn's Regexp

Fixed

  • Fix missing names on array functions
  • Fix return in a task.
  • Fix array splice where arguments are missing
  • Fix throw inside Date toISOString.
  • Fix typo in error message
  • Fix null vs undefined type.
  • Fix Acorn URL
  • Fix infinite recursion trap on last step

Other

  • Clarify where REGEXP_MODE is set.
  • Support boxed primitives between native<->pseudo
  • Ownership change
  • Compress the polyfills.
  • Make completion type check more explicit.
  • Upgrade global object detection in Acorn
  • Fold arrayPseudoToNative_ into Function's .apply
  • Overhaul nativeToPseudo and pseudoToNative
  • Tighten output of matches.
  • Support serialization of setTimeout (and friends)
  • Support setTimeout and related functions.
  • Advanced compilation of Acorn
  • Quote Acorn's options.
  • Acorn meets the style guide.
  • Turn on verbose warnings in build script.
  • Simpler approach for func params named 'arguments'
  • Don't define arguments if param is named that.
  • Move function name out of inner scope
  • Catchable readonly variables
  • Change @return to @returns
  • Stop exporting six unused Acorn properties/methods
  • Reduce Array polyfills by 1 KB.
  • Inline CatchClause step
  • Simplify 'catch' and 'with' blocks.
  • Speed up serialization on larger environments
  • Revert removal of recursion
  • Double speed of serialization.
  • Clear return value before expression
  • Set or unset .value if error is thrown.
  • Inprove consistency between array polyfills.
  • Underscore unused catch variables.
  • Use case statements.
  • Fold special numbers into special values
  • Factor out location object encoding/decoding.
  • Expose VALUE_IN_DESCRIPTOR symbol
  • Throw real errors during init
aminmarashi
published 5.2.1 •

Changelog

Source

[5.2.1] - 2024-09-17

Commit: c73dbb09

Added

  • Add setGlobalScope function

Other

  • Ownership change
aminmarashi
published 5.2.0 •

aminmarashi
published 5.1.2 •

Changelog

Source

[5.1.2] - 2024-05-17

Commit: 9c31dcb

Fixed

  • Fix missing names on array functions
  • Fix return in a task.

Other

  • Compress the polyfills.
  • Make completion type check more explicit.
aminmarashi
published 5.1.1 •

Changelog

Source

[5.1.1] - 2024-03-17

Commit: 697a109

Added

  • Add 'window' as fallback for globalThis or this.

Fixed

  • Fix array splice where arguments are missing
  • Fix throw inside Date toISOString.

Other

  • Upgrade global object detection in Acorn
  • Fold arrayPseudoToNative_ into Function's .apply
  • Overhaul nativeToPseudo and pseudoToNative
  • Tighten output of matches.
aminmarashi
published 5.1.0 •

Changelog

Source

[5.1.0] - 2023-11-17

Commit: 392ab77

Added

  • Add getStatus function.

Fixed

  • Fix typo in error message
aminmarashi
published 5.0.0 •

Changelog

Source

[5.0.0] - 2023-08-18

Commit: 10a8cf5

Added

  • Add trailing commas in obj literals

Removed

  • Remove unused tokTypes array from Acorn.
  • Remove unused 'tokenize' function from Acorn.
  • Remove two obsolete unused properties from Acorn.
  • Remove support for ES3 from Acorn
  • Remove ES6 's' and 'y' flags from Acorn's Regexp

Fixed

  • Fix null vs undefined type.
  • Fix Acorn URL
  • Fix infinite recursion trap on last step

Other

  • Support serialization of setTimeout (and friends)
  • Support setTimeout and related functions.
  • Advanced compilation of Acorn
  • Quote Acorn's options.
  • Acorn meets the style guide.
  • Turn on verbose warnings in build script.
  • Simpler approach for func params named 'arguments'
  • Don't define arguments if param is named that.
  • Move function name out of inner scope
  • Catchable readonly variables
  • Change @return to @returns
  • Stop exporting six unused Acorn properties/methods
  • Reduce Array polyfills by 1 KB.
  • Inline CatchClause step
  • Simplify 'catch' and 'with' blocks.
  • Speed up serialization on larger environments
  • Revert removal of recursion
  • Double speed of serialization.
  • Clear return value before expression
  • Set or unset .value if error is thrown.
  • Inprove consistency between array polyfills.
  • Underscore unused catch variables.
  • Use case statements.
  • Fold special numbers into special values
  • Factor out location object encoding/decoding.
  • Expose VALUE_IN_DESCRIPTOR symbol
  • Throw real errors during init
aminmarashi
published 4.0.0 •

Changelog

Source

[4.0.0] - 2022-12-06

Commit: 05d55b8

Added

  • Bump Acorn from 0.4.1 to 0.5.0
  • Expose VALUE_IN_DESCRIPTOR symbol

Removed

  • Remove support for ES3 from Acorn
  • Remove ES6 's' and 'y' flags from Acorn's Regexp

Changed

  • Fold special numbers into special values
  • Factor out location object encoding/decoding.
  • Throw real errors during init
aminmarashi
published 3.0.1 •

myuzio
published 3.0.0 •

Changelog

Source

[3.0.0] - 2022-08-23

Commit: c4c5736

Added

  • Add script for compiling acorn_interpreter.js
  • Add getters and setters for stateStack.
  • Add support for sparse arrays in Array polyfills
  • Add function names to error stack
  • Add a 'stack' property to errors.

Fixed

  • Fix missing node type when scope spidering.
  • Fix serialization/deserialization.
  • Fix 'this' bug in Function wrapper.
  • Fix RegExp.test not updating lastIndex
  • Fix unusual RegExp constructor patterns.

Changed

  • Explicitly close() finished RegExp workers.
  • Switch from blacklist to whitelist of node types
  • Decompose (de)serialize functions.
  • Recompile compressed file to be ES5.
  • Remove start/end props from deserialized polyfills
  • Compress location data in serialization format
  • Use globalThis to allow import to work
  • Safety check if top node is CallExpression
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc