@balena/sbvr-types
Advanced tools
Comparing version 9.0.1-build-joshbwlng-balena-lint-3975e8fde14cd578bcf6d2d0822e5a2fbd0049e7-1 to 9.0.1-build-joshbwlng-balena-lint-630ca7d6cbe4fed2d41827205215a2f28a971aea-1
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
151723