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

@tybys/native-require

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tybys/native-require - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

index.esm.js

9

package.json
{
"name": "@tybys/native-require",
"version": "1.1.0",
"version": "1.2.0",
"description": "Export native require function. It can be ignored by webpack preprocessing and avoid bundling webpack node polyfills.",
"module": "index.esm.js",
"main": "index.js",
"typings": "index.d.ts",
"scripts": {

@@ -24,4 +26,5 @@ "prepare": "node ./scripts/build.js",

"devDependencies": {
"@rollup/plugin-commonjs": "^11.1.0",
"rollup": "^2.7.2",
"@rollup/plugin-commonjs": "^11.0.0",
"@rollup/plugin-node-resolve": "^8.1.0",
"rollup": "^2.18.1",
"rollup-plugin-terser": "^5.3.0",

@@ -28,0 +31,0 @@ "webpack": "^4.43.0"

@@ -41,3 +41,3 @@ const ParserHelpers = require('webpack/lib/ParserHelpers.js')

parser.state.module.context,
require.resolve("../index.js")
require.resolve("..")
);

@@ -44,0 +44,0 @@ return ParserHelpers.addParsedVariableToModule(parser, val, code)

@@ -17,3 +17,3 @@ # native-require

Webpack config:
Plugin is **not** neccesary.

@@ -62,3 +62,3 @@ ``` js

Rollup config:
**NOTE**: If you are using commonjs `require('@tybys/native-require')` with `@rollup/plugin-commonjs` and it's major version is less than `12`, you need add `@tybys/native-require/plugins/rollup.js`.

@@ -76,4 +76,8 @@ ``` js

JavaScript / TypeScript:
``` js
const { nativeRequire } = require('@tybys/native-require')
```
ESM / TypeScript:
``` js

@@ -80,0 +84,0 @@ import { nativeRequire } from '@tybys/native-require'

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