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

@compas/stdlib

Package Overview
Dependencies
Maintainers
1
Versions
196
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@compas/stdlib - npm Package Compare versions

Comparing version 0.0.122 to 0.0.123

2

index.d.ts

@@ -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 @@ /**

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