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

natives

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

natives - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

15

index.js
var natives = process.binding('natives')
var module = require('module')
var normalRequire = require
exports.src = src
exports.source = src
exports.require = req

@@ -44,2 +44,15 @@ var vm = require('vm')

// native_module isn't actually a natives binding.
// weird, right?
if (id === 'native_module') {
return {
getSource: src,
wrap: function (script) {
return wrap[0] + script + wrap[1]
},
wrapper: wrap,
_cache: cache
}
}
var source = src(id)

@@ -46,0 +59,0 @@ if (!source) {

4

package.json
{
"name": "natives",
"version": "1.0.1",
"version": "1.0.2",
"description": "Do stuff with Node.js's native JavaScript modules",
"main": "index.js",
"scripts": {
"test": "tap test/*.js --branches=100"
"test": "tap test/*.js --branches=100 --lines=100 --statements=100 --functions=100"
},

@@ -9,0 +9,0 @@ "repository": {

@@ -9,4 +9,4 @@ # natives

I feel compelled to give you a personalized word of warning if you are
considering using this module.
I feel compelled to give you a word of warning if you are considering
using this module.

@@ -13,0 +13,0 @@ This module lets you do some creative things with the JavaScript code

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