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

@telegram-apps/toolkit

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@telegram-apps/toolkit - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

dist/dts/types/unions.d.ts

1

dist/dts/index.d.ts

@@ -14,2 +14,3 @@ export { CancelablePromise } from './async/promises/CancelablePromise.js';

export type * from './types/predicates.js';
export type * from './types/unions.js';
export { addEventListener } from './addEventListener.js';

@@ -16,0 +17,0 @@ export { createCbCollector, type CallbackFn } from './createCbCollector.js';

16

dist/index.js

@@ -11,3 +11,3 @@ var k = Object.defineProperty;

}
), this.type = e, Object.setPrototypeOf(this, d.prototype);
), this.type = e, this.name = "TypedError", Object.setPrototypeOf(this, d.prototype);
}

@@ -36,7 +36,7 @@ }

const R = "ERR_ABORTED", $ = "ERR_CANCELED", S = "ERR_TIMED_OUT";
function C(r) {
function T(r) {
return new d(R, { cause: r });
}
const U = m(S), V = m(R), B = m($);
function T(r, e) {
function C(r, e) {
return r.reject = e.reject, r;

@@ -53,3 +53,3 @@ }

if (l && l.aborted)
return h(C(l.reason));
return h(T(l.reason));
const [y, A] = _(), b = (f) => (...L) => (A(), f(...L)), w = new AbortController(), { signal: D } = w;

@@ -60,3 +60,3 @@ c = b((f) => {

x(l, "abort", () => {
c(C(l.reason));
c(T(l.reason));
})

@@ -129,3 +129,3 @@ );

finally(t) {
return T(super.finally(t), this);
return C(super.finally(t), this);
}

@@ -136,3 +136,3 @@ /**

then(t, n) {
return T(super.then(t, n), this);
return C(super.then(t, n), this);
}

@@ -282,3 +282,3 @@ }

z as camelToSnake,
C as createAbortError,
T as createAbortError,
_ as createCbCollector,

@@ -285,0 +285,0 @@ q as createLogger,

{
"name": "@telegram-apps/toolkit",
"version": "1.0.0",
"version": "1.1.0",
"description": "Internal toolkit used in the @telegram-apps packages.",

@@ -5,0 +5,0 @@ "author": "Vladislav Kibenko <wolfram.deus@gmail.com>",

@@ -16,4 +16,5 @@ export interface TypedErrorOptions {

);
this.name = 'TypedError';
Object.setPrototypeOf(this, TypedError.prototype);
}
}

@@ -31,2 +31,3 @@ export { CancelablePromise } from './async/promises/CancelablePromise.js';

export type * from './types/predicates.js';
export type * from './types/unions.js';

@@ -33,0 +34,0 @@ export { addEventListener } from './addEventListener.js';

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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