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

schema-magic

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

schema-magic - npm Package Compare versions

Comparing version 0.0.9 to 0.0.11

8

lib/index.js

@@ -167,3 +167,9 @@ const $json=require('json-magic');

let replacement={type:"string"};
if (isArray)replacement=[curSchema,"string"];
if (isArray){
if ($check.array(curSchema)){
replacement=curSchema.filter(c=>c!=="string").concat(["string"]);
}else{
replacement=[curSchema,"string"];
}
}
$json.set(workingSchema,schemaPath,replacement);

@@ -170,0 +176,0 @@ }catch (exp){

2

package.json
{
"name": "schema-magic",
"version": "0.0.9",
"version": "0.0.11",
"description": "JSON Schema Utilities",

@@ -5,0 +5,0 @@ "author": {

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