Socket
Socket
Sign inDemoInstall

native-ext-loader

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

native-ext-loader - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

CHANGELOG.md

3

index.js

@@ -12,4 +12,5 @@ var loaderUtils = require("loader-utils");

const context = this.options ? this.options.context : this.rootContext;
const fileName = loaderUtils.interpolateName(this, config.name, {
context: this.options.context,
context: context,
content: content

@@ -16,0 +17,0 @@ });

{
"name": "native-ext-loader",
"version": "1.0.0",
"version": "1.1.0",
"description": "Loader for Node native extensions",
"main": "index.js",
"repository": "https://github.com/smt116/node-native-loader",
"scripts": {
},
"scripts": {},
"keywords": [

@@ -10,0 +9,0 @@ "node",

# Node Native Loader
Module for loading native files in Node and Electron applications. The project is inspired by the (node-addon-loader)[https://github.com/ushu/node-addon-loader]. It works in the similar way but allows to build path in the runtime.
Module for loading native files in Node and Electron applications. The project is inspired by the [node-addon-loader](https://github.com/ushu/node-addon-loader). It works in the similar way but **allows to build path in the runtime**.

@@ -34,3 +34,3 @@ ## Install

test: /\.node$/,
loader: 'node-native-loader',
loader: 'native-ext-loader',
options: {

@@ -46,3 +46,3 @@ name: '[hex].[ext]',

This option allows to change the file name in the output directory. You can use all placeholders defined in the (loader-utils)[https://github.com/webpack/loader-utils/tree/v1.1.0#interpolatename] package.
This option allows to change the file name in the output directory. You can use all placeholders defined in the [loader-utils](https://github.com/webpack/loader-utils/tree/v1.1.0#interpolatename) package.

@@ -49,0 +49,0 @@ ### `rewritePath`

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