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

cjstoes

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cjstoes - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

2

package.json
{
"name": "cjstoes",
"version": "0.1.5",
"version": "0.1.6",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -118,3 +118,5 @@ const estraverse = require('estraverse')

let varName = ''
if (allRequiresObj[n[1][0]]) {
// 注意不能是Object原型链上的方法
if (allRequiresObj.hasOwnProperty(n[1][0]) && allRequiresObj[n[1][0]]) {
varName = getPathName(allRequiresObj[n[1][0]]) + '_' + n[1][1]

@@ -121,0 +123,0 @@ } else {

@@ -50,2 +50,13 @@ const { parseModule } = require('esprima')

})
it('export keyword', () => {
const input = parseModule(
`var hasOwnProperty = '1';module.exports = { hasOwnProperty: hasOwnProperty }`
),
output = parseModule(
`var hasOwnProperty = '1';export var Data_String_hasOwnProperty=hasOwnProperty`
)
transform(input, 'Data_String')
expect(input).to.deep.equal(output)
})
it('exports.b', () => {

@@ -52,0 +63,0 @@ const input = parseModule(`exports.b = 'b'`),

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