@aml-org/amf-custom-validator
Advanced tools
Comparing version 1.3.0-SNAPSHOT.94 to 1.3.0-SNAPSHOT.96
@@ -21,16 +21,20 @@ // Copyright 2021 The Go Authors. All rights reserved. | ||
globalThis.performance = { | ||
now() { | ||
const [sec, nsec] = process.hrtime(); | ||
return sec * 1000 + nsec / 1000000; | ||
}, | ||
}; | ||
if (!globalThis.performance || !globalThis.performance.now) { | ||
globalThis.performance = { | ||
now() { | ||
const [sec, nsec] = process.hrtime(); | ||
return sec * 1000 + nsec / 1000000; // time in milliseconds | ||
}, | ||
}; | ||
} | ||
const crypto = require("crypto"); | ||
globalThis.crypto = { | ||
getRandomValues(b) { | ||
crypto.randomFillSync(b); | ||
}, | ||
}; | ||
const crypto = require("crypto") | ||
if (!globalThis.crypto || !globalThis.crypto.getRandomValues) { | ||
globalThis.crypto = { | ||
getRandomValues(b) { | ||
crypto.randomFillSync(b); | ||
}, | ||
}; | ||
} | ||
require("./wasm_exec"); | ||
require("./wasm_exec"); |
{ | ||
"name": "@aml-org/amf-custom-validator", | ||
"version": "1.3.0-SNAPSHOT.94", | ||
"version": "1.3.0-SNAPSHOT.96", | ||
"description": "AMF validator backed by OPA Rego", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
5715920
696