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

@travetto/yaml

Package Overview
Dependencies
Maintainers
1
Versions
160
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@travetto/yaml - npm Package Compare versions

Comparing version 4.0.0-rc.0 to 4.0.0-rc.1

4

package.json
{
"name": "@travetto/yaml",
"version": "4.0.0-rc.0",
"version": "4.0.0-rc.1",
"description": "Simple YAML support, provides only clean subset of yaml",

@@ -27,3 +27,3 @@ "keywords": [

"dependencies": {
"@travetto/base": "^4.0.0-rc.0"
"@travetto/base": "^4.0.0-rc.1"
},

@@ -30,0 +30,0 @@ "travetto": {

@@ -1,2 +0,1 @@

import { DataUtil } from '@travetto/base';
import { SimpleType } from './common';

@@ -25,3 +24,6 @@

constructor(token: string) {
this.value = DataUtil.coerceType(token, Number, true);
this.value = token.includes('.') ? parseFloat(token) : parseInt(token, 10);
if (Number.isNaN(this.value)) {
throw new Error(`Invalid numeric input: ${token}`);
}
}

@@ -34,3 +36,3 @@ }

constructor(token: string) {
this.value = DataUtil.coerceType(token, Boolean, true);
this.value = /^(yes|on|1|true)/i.test(token);
}

@@ -37,0 +39,0 @@ }

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