New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@getlang/utils

Package Overview
Dependencies
Maintainers
0
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@getlang/utils - npm Package Compare versions

Comparing version 0.0.8 to 0.0.14

dist/errors.js.map

1

dist/errors.js

@@ -71,1 +71,2 @@ export class RuntimeError extends Error {

}
//# sourceMappingURL=errors.js.map

9

dist/index.d.ts

@@ -1,6 +0,3 @@

export * from './scope';
export * from './errors';
export * from './types';
export type MaybePromise<T> = T | Promise<T>;
export declare function wait<V, X>(value: MaybePromise<V>, then: (value: V) => X): MaybePromise<X>;
export declare function waitMap<V, X>(values: V[], mapper: (value: V) => MaybePromise<X>): MaybePromise<X[]>;
export * from './wait.js';
export * from './errors.js';
export * from './hooks.js';

@@ -1,17 +0,4 @@

export * from './scope';
export * from './errors';
export * from './types';
export function wait(value, then) {
return value instanceof Promise ? value.then(then) : then(value);
}
export function waitMap(values, mapper) {
return values.reduce((acc, value) => acc instanceof Promise
? acc.then(async (acc) => {
acc.push(await mapper(value));
return acc;
})
: wait(mapper(value), value => {
acc.push(value);
return acc;
}), []);
}
export * from './wait.js';
export * from './errors.js';
export * from './hooks.js';
//# sourceMappingURL=index.js.map
{
"name": "@getlang/utils",
"version": "0.0.8",
"version": "0.0.14",
"license": "Apache-2.0",
"type": "module",
"main": "dist",
"files": [
"dist"
],
"exports": {
"bun": "./index.ts",
"default": "./dist/index.js"
},
"bugs": {

@@ -11,0 +11,0 @@ "url": "https://github.com/getlang-dev/get/issues"

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