@compas/stdlib
Advanced tools
Comparing version 0.0.122 to 0.0.123
@@ -33,3 +33,3 @@ import { Logger } from "@compas/insight"; | ||
* AppError.validationError("validation.string.length", { message: "String should have at | ||
* least 3 characters" }); AppError.serverError({}, new Error("Oopsie")); | ||
* least 3 characters" }); AppError.serverError({}, new Error("Oops")); | ||
* ``` | ||
@@ -36,0 +36,0 @@ */ |
{ | ||
"name": "@compas/stdlib", | ||
"version": "0.0.122", | ||
"version": "0.0.123", | ||
"description": "All kinds of utility functions", | ||
@@ -16,3 +16,3 @@ "main": "./index.js", | ||
"dependencies": { | ||
"@compas/insight": "0.0.122", | ||
"@compas/insight": "0.0.123", | ||
"@types/node": "14.14.31", | ||
@@ -43,3 +43,3 @@ "dotenv": "8.2.0", | ||
}, | ||
"gitHead": "22f4e7c17a5d515aaab9b844cd7dc467aab21987" | ||
"gitHead": "d69ba8193d772c412952369512c78de9a81051ef" | ||
} |
@@ -29,3 +29,3 @@ # @compas/stdlib | ||
My work involved doing many small projects. I had a hard time backporting | ||
My work involved doing many small projects. I had a hard time back-porting | ||
incremental fixes to existing projects. To facilitate my needs more and to stop | ||
@@ -32,0 +32,0 @@ copying and pasting things around, this project was born. |
@@ -1,8 +0,4 @@ | ||
import crypto from "crypto"; | ||
import { v4 } from "./vendor/uuid.js"; | ||
import { randomUUID } from "crypto"; | ||
/** | ||
* Vendor uuid v4 generator from uuidjs/uuid. | ||
* If we are on Node.js 15 or above, we use the built-in import("crypto").randomUUID. | ||
* This variant is a bit faster and allows us to drop the vendor code. | ||
* This function also has an `uuid.isValid` function, which returns a boolean depending | ||
@@ -17,4 +13,3 @@ * on if the passed in string is a valid uuid. | ||
*/ | ||
export const uuid = | ||
typeof crypto.randomUUID === "function" ? crypto.randomUUID : v4; | ||
export const uuid = randomUUID; | ||
@@ -21,0 +16,0 @@ /** |
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
31776
13
1029
+ Added@compas/insight@0.0.123(transitive)
- Removed@compas/insight@0.0.122(transitive)
Updated@compas/insight@0.0.123