Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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 Compare versions

Comparing version 3.3.0 to 3.3.1

2

__tests__/cjs/import.test.ts

@@ -52,3 +52,3 @@ import os from 'os'

"var Greet = /* @__PURE__ */ ((Greet2) => {
Greet2[Greet2[\\"Hi\\"] = 0] = \\"Hi\\";
Greet2[Greet2["Hi"] = 0] = "Hi";
return Greet2;

@@ -55,0 +55,0 @@ })(Greet || {});

@@ -44,3 +44,3 @@ import os from 'os'

"var Greet = /* @__PURE__ */ ((Greet2) => {
Greet2[Greet2[\\"Hi\\"] = 0] = \\"Hi\\";
Greet2[Greet2["Hi"] = 0] = "Hi";
return Greet2;

@@ -47,0 +47,0 @@ })(Greet || {});

@@ -48,3 +48,3 @@ import os from 'os'

"var Greet = /* @__PURE__ */ ((Greet2) => {
Greet2[Greet2[\\"Hi\\"] = 0] = \\"Hi\\";
Greet2[Greet2["Hi"] = 0] = "Hi";
return Greet2;

@@ -51,0 +51,0 @@ })(Greet || {});

@@ -47,3 +47,3 @@ import os from 'os'

"var Greet = /* @__PURE__ */ ((Greet2) => {
Greet2[Greet2[\\"Hi\\"] = 0] = \\"Hi\\";
Greet2[Greet2["Hi"] = 0] = "Hi";
return Greet2;

@@ -50,0 +50,0 @@ })(Greet || {});

@@ -136,2 +136,3 @@ "use strict";

filename: moduleFilename,
// @ts-expect-error: experimental
async importModuleDynamically(specifier) {

@@ -221,2 +222,3 @@ return await import(resolveModuleSpecifier(specifier, contextModule.path));

},
// @ts-expect-error: wrong type definition
async importModuleDynamically(specifier) {

@@ -223,0 +225,0 @@ return await import(resolveModuleSpecifier(specifier, dirname));

{
"name": "module-from-string",
"version": "3.3.0",
"version": "3.3.1",
"description": "Load module from string using require or import.",

@@ -49,14 +49,14 @@ "main": "dist/index.js",

"dependencies": {
"esbuild": "^0.15.7",
"nanoid": "^3.3.4"
"esbuild": "^0.23.0",
"nanoid": "^3.3.7"
},
"devDependencies": {
"@types/jest": "28.1.8",
"@types/node": "18.7.18",
"@types/normalize-path": "3.0.0",
"@types/node": "22.0.0",
"@types/normalize-path": "3.0.2",
"cross-env": "7.0.3",
"jest": "28.1.3",
"normalize-path": "3.0.0",
"rollup": "2.79.0",
"rollup-plugin-dts": "4.2.2",
"rollup": "2.79.1",
"rollup-plugin-dts": "4.2.3",
"rollup-plugin-esbuild-transform": "1.5.0",

@@ -66,3 +66,4 @@ "ts-jest": "28.0.8",

"typescript": "4.4.4"
}
},
"packageManager": "npm@8.19.4+sha512.dc700d97c8bd0ca9d403cf4fe0a12054d376f048d27830a6bc4a9bcce02ec42143cdd059ce3525f7dce09c6a4e52e9af5b996f268d8729c8ebb1cfad7f2bf51f"
}

@@ -6,3 +6,3 @@ # module-from-string

[![npm](https://img.shields.io/npm/v/module-from-string.svg)](https://www.npmjs.com/package/module-from-string)
[![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/exuanbo/module-from-string/Node.js%20CI/main.svg)](https://github.com/exuanbo/module-from-string/actions?query=workflow)
[![GitHub Workflow Status (branch)](https://img.shields.io/github/actions/workflow/status/exuanbo/module-from-string/nodejs.yml.svg?branch=main)](https://github.com/exuanbo/module-from-string/actions?query=workflow)
[![Node.js](https://img.shields.io/badge/node-%3E%3D12.20.0-brightgreen.svg)](https://nodejs.org/)

@@ -9,0 +9,0 @@ [![libera manifesto](https://img.shields.io/badge/libera-manifesto-lightgrey.svg)](https://liberamanifesto.com)

Sorry, the diff of this file is not supported yet

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