Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

restruct-data

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

restruct-data - npm Package Compare versions

Comparing version 0.2.7 to 0.2.8

2

package.json
{
"name": "restruct-data",
"version": "0.2.7",
"version": "0.2.8",
"description": "ERROR: No README data found!",

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

@@ -70,2 +70,4 @@

result[k] = fill(v, data);
else if(typeof v === 'number')
result[k] = v;
else if(Array.isArray(v)) {

@@ -72,0 +74,0 @@ if (typeof v[0] === 'string')

@@ -169,1 +169,13 @@

console.log(json(data,true))
/* test if restruct handles integers */
var struct = {
"< test": {
"integer_test": 1
}
}
var data = restruct({
"test": "Test",
}, struct);
console.log(json(data,true))
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