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

@cara/porter

Package Overview
Dependencies
Maintainers
2
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cara/porter - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

3

lib/matchRequire.js

@@ -27,2 +27,5 @@ 'use strict'

function findRequire() {
// to rule out module.require()
if (parts[i - 2] == '.') return
space()

@@ -29,0 +32,0 @@ if (part == '(') {

2

package.json
{
"name": "@cara/porter",
"description": "A koa and express middleware for browser side javascript module authoring.",
"version": "1.0.1",
"version": "1.0.2",
"main": "lib/Porter.js",

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

@@ -135,2 +135,9 @@ 'use strict'

})
it('should not match module.require()', async function() {
const deps = matchRequire.findAll(`
var types = freeModule && freeModule.require && freeModule.require('util').types;
`)
expect(deps).to.eql([])
})
})
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