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

think-config

Package Overview
Dependencies
Maintainers
8
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

think-config - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

3

index.js

@@ -48,2 +48,5 @@ const helper = require('think-helper');

name = name.split('.');
if (name.some(item => /^__proto__|prototype|construcotr$/.test(item))) {
return this;
}
const length = name.length;

@@ -50,0 +53,0 @@ name.forEach((item, index) => {

2

package.json
{
"name": "think-config",
"description": "config for ThinkJS",
"version": "1.1.2",
"version": "1.1.3",
"author": {

@@ -6,0 +6,0 @@ "name": "welefen",

@@ -84,2 +84,8 @@ import test from 'ava';

test('config set 7', t => {
const config = new Config({name: 2});
config.set('name.__proto__', 1234);
t.deepEqual(config.get('name.__proto__'), undefined);
});
test('getConfigFn 1', t => {

@@ -86,0 +92,0 @@ const fn = getConfigFn({name: 1}, false);

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