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

alcalzone-shared

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alcalzone-shared

A set of utilities shared between my projects

  • 3.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5.7K
decreased by-81.38%
Maintainers
1
Weekly downloads
 
Created
Source

shared-utils

node npm

Build Status Coverage Status

A set of utilities shared between my projects

Function documentation available here

Changelog

3.0.4 (2021-04-24)

  • Fix compatibility of wait() with Electron if unref is true
  • Dependency updates

3.0.3 (2021-03-09)

Fixes
  • Fixed compatibility with TypeScript 4.2

3.0.2 (2021-01-16)

Fixes
  • The argument to resolve of DeferredPromise is no longer optional, except for Promise<void>

3.0.1 (2020-12-05)

Fixes
  • The typeguard isObject no longer narrows the type of the argument to object

3.0.0 (2020-08-16)

Breaking changes
  • Renamed the following types:
    • DropLast -> Lead
    • TakeLast -> Last
    • TakeLastArgument -> LastArgument
  • TypeScript 4.1 is now required
Features
  • Added the following types:
    • FixedIndizesOf<T[]> - Like IndizesOf, but does not include the type number if the tuple/array is variable-length
    • Tail<T[]> - Returns all but the first item's type in a tuple/array
    • Push<List[], Item> - Returns the given tuple/array with the item type appended to it
    • Concat<T1[], T2[]> - Concatenates the given tuples/arrays
    • TupleOf<T, N> - Returns a tuple of length N with item types T.
    • Range<N> - Creates a Union of all numbers (converted to string) from 0 to N (exclusive), e.g. Range<4> is equal to "0" | "1" | "2" | "3".
    • RangeFrom<N, M> - Creates a Union of all numbers from N (inclusive) to M (exclusive), e.g. RangeFrom<2, 4> is equal to "2" | "3".
    • IsGreaterThan<N, M> - is equal to true if N > M, otherwise false
    • IsLessThanOrEqual<N, M> - is equal to true if N <= M, otherwise false
    • IsLessThan<N, M> - is equal to true if N < M, otherwise false
    • IsGreaterThanOrEqual<N, M> - is equal to true if N >= M, otherwise false
Fixes
  • The type CallbackAPIReturnType now works with strictNullChecks.
  • The type Promisify is no longer experimental and no longer messes up the inferred signature argument names

2.3.0 (2020-06-08)

  • Added optional unref parameter to async -> wait(ms, [unref])

FAQs

Package last updated on 24 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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