Socket
Socket
Sign inDemoInstall

module-from-string

Package Overview
Dependencies
Maintainers
0
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

module-from-string - npm Package Versions

23

3.3.1

Diff

exuanbo
published 3.3.0 •

Changelog

Source

3.3.0 (2022-09-16)

Features

  • Add option filename for better exception stack trace.
exuanbo
published 3.2.1 •

Changelog

Source

3.2.1 (2022-08-02)

Bug Fixes

  • File URL was incorrectly converted to path in import() expression.
  • Error when using import statement with absolute path on Windows.
exuanbo
published 3.2.0 •

Changelog

Source

3.2.0 (2022-07-17)

Features

  • Add option useCurrentGlobal to pass all the available variable from the current global (or globalThis) into the context.
  • Add curried functions createRequireFromString, createImportFromString and createImportFromStringSync.
exuanbo
published 3.2.0-1 •

exuanbo
published 3.2.0-0 •

exuanbo
published 3.1.4 •

Changelog

Source

3.1.4 (2021-12-23)

Bug Fixes

  • import.meta.url is incorrectly set to path instead of URL string in importFromString.

Chores

  • Bump dependencies. Note that esbuild 0.14.4 adjusted its handling of default exports and the __esModule marker to improve compatibility with Webpack and Node, which may cause some changes when transforming the code from ES modules to CommonJS modules.
exuanbo
published 3.1.3 •

Changelog

Source

3.1.3 (2021-11-27)

Bug Fixes

  • Absolute path import on Windows such as C:\foo could not be resolved.

Chores

  • Bump dependencies.
exuanbo
published 3.1.2 •

Changelog

Source

3.1.2 (2021-11-07)

Chores

  • Bump and unpin dependencies.
exuanbo
published 3.1.1 •

Changelog

Source

3.1.1 (2021-08-28)

Bug Fixes

  • In the previous versions when using import statement and dynamic import() expression, the specifier would not be resolved correctly if used on Windows and the path starts with posix path separator.

Chores

  • Bump dependency esbuild from 0.12.22 to 0.12.24
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