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

@naturalcycles/js-lib

Package Overview
Dependencies
Maintainers
3
Versions
525
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@naturalcycles/js-lib - npm Package Compare versions

Comparing version 4.5.1 to 4.6.0

7

CHANGELOG.md

@@ -0,1 +1,8 @@

# [4.6.0](https://github.com/NaturalCycles/js-lib/compare/v4.5.1...v4.6.0) (2019-04-10)
### Features
* DeepReadonly type ([e597095](https://github.com/NaturalCycles/js-lib/commit/e597095))
## [4.5.1](https://github.com/NaturalCycles/js-lib/compare/v4.5.0...v4.5.1) (2019-04-08)

@@ -2,0 +9,0 @@

4

dist/index.d.ts

@@ -7,3 +7,3 @@ import { memo } from './decorators/memo.decorator';

import { HttpError } from './error/http.error';
import { ClassType, PromiseMap, StringMap } from './types';
import { ClassType, DeepReadonly, PromiseMap, StringMap } from './types';
import { arrayRange, dedupeArray, flatArray } from './util/array.util';

@@ -15,2 +15,2 @@ import { arrayToHash, by, classToPlain, deepCopy, deepEquals, deepFreeze, deepTrim, filterEmptyStringValues, filterFalsyValues, filterUndefinedValues, filterValues, getKeyByValue, invertMap, invertObject, isEmptyObject, isObject, mask, mergeDeep, objectNullValuesToUndefined, pick, sortObjectDeep, transformValues, unsetValue } from './util/object.util';

import { silentConsole } from './util/test.util';
export { memo, memoCache, ErrorData, ErrorObject, HttpErrorData, HttpErrorResponse, AppError, HttpError, Admin401ErrorData, Admin403ErrorData, silentConsole, randomInt, loadScript, StringMap, PromiseMap, ClassType, capitalizeFirstLetter, lowercaseFirstLetter, removeWhitespace, pick, filterFalsyValues, filterEmptyStringValues, filterUndefinedValues, filterValues, transformValues, objectNullValuesToUndefined, deepEquals, deepCopy, isObject, isEmptyObject, mergeDeep, deepTrim, sortObjectDeep, unsetValue, mask, arrayToHash, classToPlain, getKeyByValue, invertObject, invertMap, by, deepFreeze, anyToErrorMessage, anyToErrorObject, errorToErrorObject, errorObjectToAppError, errorObjectToHttpError, appErrorToErrorObject, appErrorToHttpError, arrayRange, dedupeArray, flatArray, };
export { memo, memoCache, ErrorData, ErrorObject, HttpErrorData, HttpErrorResponse, AppError, HttpError, Admin401ErrorData, Admin403ErrorData, silentConsole, randomInt, loadScript, StringMap, PromiseMap, ClassType, DeepReadonly, capitalizeFirstLetter, lowercaseFirstLetter, removeWhitespace, pick, filterFalsyValues, filterEmptyStringValues, filterUndefinedValues, filterValues, transformValues, objectNullValuesToUndefined, deepEquals, deepCopy, isObject, isEmptyObject, mergeDeep, deepTrim, sortObjectDeep, unsetValue, mask, arrayToHash, classToPlain, getKeyByValue, invertObject, invertMap, by, deepFreeze, anyToErrorMessage, anyToErrorObject, errorToErrorObject, errorObjectToAppError, errorObjectToHttpError, appErrorToErrorObject, appErrorToHttpError, arrayRange, dedupeArray, flatArray, };

@@ -14,1 +14,4 @@ /**

export declare type ClassType<T = any> = new (...args: any[]) => T;
export declare type DeepReadonly<T> = {
readonly [P in keyof T]: DeepReadonly<T[P]>;
};
{
"name": "@naturalcycles/js-lib",
"version": "4.5.1",
"version": "4.6.0",
"scripts": {

@@ -5,0 +5,0 @@ "build": "del ./dist && tsc",

@@ -22,3 +22,3 @@ import { memo } from './decorators/memo.decorator'

import { HttpError } from './error/http.error'
import { ClassType, PromiseMap, StringMap } from './types'
import { ClassType, DeepReadonly, PromiseMap, StringMap } from './types'
import { arrayRange, dedupeArray, flatArray } from './util/array.util'

@@ -72,2 +72,3 @@ import {

ClassType,
DeepReadonly,
capitalizeFirstLetter,

@@ -74,0 +75,0 @@ lowercaseFirstLetter,

@@ -16,1 +16,4 @@ /**

export type ClassType<T = any> = new (...args: any[]) => T
// Based on: https://github.com/Microsoft/TypeScript/issues/13923
export type DeepReadonly<T> = { readonly [P in keyof T]: DeepReadonly<T[P]> }

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