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

@balena/sbvr-types

Package Overview
Dependencies
Maintainers
0
Versions
222
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@balena/sbvr-types - npm Package Compare versions

Comparing version 9.0.0-build-joshbwlng-bigint-string-127ae3170d17104c6079567167eba3f36cb8c058-1 to 9.0.0-build-joshbwlng-bigint-string-45d3cd6262f094a0c43ffe308dccab4968c074be-1

2

CHANGELOG.md

@@ -8,3 +8,3 @@ # Change Log

# v9.0.0
## (2024-06-25)
## (2024-07-05)

@@ -11,0 +11,0 @@ * Update BigInteger and BigSerial TsTypes [Josh Bowling]

@@ -18,7 +18,7 @@ "use strict";

let value;
if (typeof data === 'bigint') {
if (typeof data === 'string') {
value = data;
}
else if (typeof data === 'string' || typeof data === 'number') {
value = BigInt(data);
else if (typeof data === 'bigint' || typeof data === 'number') {
value = data.toString();
}

@@ -28,3 +28,3 @@ else {

}
return value.toString();
return value;
};

@@ -31,0 +31,0 @@ exports.fetchProcessing = fetchProcessing;

{
"name": "@balena/sbvr-types",
"version": "9.0.0-build-joshbwlng-bigint-string-127ae3170d17104c6079567167eba3f36cb8c058-1",
"version": "9.0.0-build-joshbwlng-bigint-string-45d3cd6262f094a0c43ffe308dccab4968c074be-1",
"description": "SBVR type definitions.",

@@ -54,4 +54,4 @@ "main": "out",

"versionist": {
"publishedAt": "2024-06-25T00:39:34.881Z"
"publishedAt": "2024-07-05T00:50:33.150Z"
}
}

@@ -21,11 +21,11 @@ import * as TypeUtils from '../type-utils';

}
let value: bigint;
if (typeof data === 'bigint') {
let value: string;
if (typeof data === 'string') {
value = data;
} else if (typeof data === 'string' || typeof data === 'number') {
value = BigInt(data);
} else if (typeof data === 'bigint' || typeof data === 'number') {
value = data.toString();
} else {
throw new Error('Fetched bigint is not valid: ' + typeof data);
}
return value.toString();
return value;
};

@@ -32,0 +32,0 @@

Sorry, the diff of this file is not supported yet

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