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

@rss/common

Package Overview
Dependencies
Maintainers
1
Versions
895
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rss/common - npm Package Compare versions

Comparing version 0.0.43 to 0.0.44

2

dist/model/chemical/container.js

@@ -78,3 +78,3 @@ 'use strict';

this.size = opt.size ? parseFloat(opt.size, 10) : null;
this.amount = parseFloat(!isNaN(opt.amount) ? opt.amount : opt.size, 10); // eslint-disable-line
this.amount = parseFloat(!isNaN(opt.amount) && opt.amount !== null ? opt.amount : opt.size, 10); // eslint-disable-line
this.units = opt.units || null;

@@ -81,0 +81,0 @@ this.physicalState = opt.physicalState || null;

{
"name": "@rss/common",
"version": "0.0.43",
"version": "0.0.44",
"description": "common constant, classes, & helper",

@@ -5,0 +5,0 @@ "author": "Risk & Safety Solution",

@@ -66,3 +66,3 @@ const ObjectId = require('bson').ObjectID;

this.size = opt.size ? parseFloat(opt.size, 10) : null;
this.amount = parseFloat(!isNaN(opt.amount) ? opt.amount : opt.size, 10); // eslint-disable-line
this.amount = parseFloat(!isNaN(opt.amount) && opt.amount !== null ? opt.amount : opt.size, 10); // eslint-disable-line
this.units = opt.units || null;

@@ -69,0 +69,0 @@ this.physicalState = opt.physicalState || null;

@@ -24,3 +24,3 @@ const Container = require('./container');

it('should set container amount to container size if not passed in', () => {
const cont = new Container({ size: 10 });
const cont = new Container({ size: 10, amount: null });
expect(cont.amount).toEqual(10);

@@ -27,0 +27,0 @@ });

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