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.1-build-joshbwlng-balena-lint-3975e8fde14cd578bcf6d2d0822e5a2fbd0049e7-1 to 9.0.1-build-joshbwlng-balena-lint-630ca7d6cbe4fed2d41827205215a2f28a971aea-1

2

out/types/sha.d.ts

@@ -14,3 +14,3 @@ import * as TypeUtils from '../type-utils';

export declare const validate: TypeUtils.Validate<Types['Write'], DbWriteType>;
export declare const compare: (value: string, result: string) => boolean;
export declare const compare: (value: string, result: string) => Promise<boolean>;
export {};

@@ -37,3 +37,3 @@ "use strict";

});
const compare = (value, result) => {
const compare = async (value, result) => {
return sha256(value) === result;

@@ -40,0 +40,0 @@ };

{
"name": "@balena/sbvr-types",
"version": "9.0.1-build-joshbwlng-balena-lint-3975e8fde14cd578bcf6d2d0822e5a2fbd0049e7-1",
"version": "9.0.1-build-joshbwlng-balena-lint-630ca7d6cbe4fed2d41827205215a2f28a971aea-1",
"description": "SBVR type definitions.",

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

"versionist": {
"publishedAt": "2024-08-02T07:17:26.388Z"
"publishedAt": "2024-08-02T22:49:48.742Z"
}
}

@@ -85,4 +85,4 @@ import type { SbvrType } from './type-utils';

validateSync: (value: string) => string;
compare: (str: string, hash: string) => Promise<boolean> | boolean;
compare: (str: string, hash: string) => Promise<boolean>;
};
};

@@ -46,4 +46,4 @@ // We are using the P-H-C storing format:

export const compare = (value: string, result: string) => {
export const compare = async (value: string, result: string) => {
return sha256(value) === result;
};

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