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

datatype-expansion

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datatype-expansion - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

2

package.json
{
"name": "datatype-expansion",
"version": "0.3.0",
"version": "0.3.1",
"description": "Utility tool to expand a given RAML type and create a canonical form",

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

@@ -102,3 +102,3 @@ 'use strict'

// recursively with the parsed type expression and the provided `bindings`
if (/^[^\s|]*(?:\s*\|\s*[^\s|]*)+$/.test(form)) { // union
if (/^[^|\s]+(?:\|[^|\s]+)+$/.test(form.replace(/\s+/g, ''))) { // union
const alternatives = form.split('|').map(s => s.trim())

@@ -105,0 +105,0 @@ return expandUnion({anyOf: alternatives, type: 'union'}, bindings, visited, options)

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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