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 8.3.0 to 8.4.0

dist-esm/decorators/debounce.decorator.js

10

CHANGELOG.md

@@ -0,1 +1,11 @@

# [8.4.0](https://github.com/NaturalCycles/js-lib/compare/v8.3.0...v8.4.0) (2019-08-18)
### Features
* _debounce, _throttle based on lodash ([1ff92ff](https://github.com/NaturalCycles/js-lib/commit/1ff92ff))
* @Debounce, @Throttle decorators ([31ad9f5](https://github.com/NaturalCycles/js-lib/commit/31ad9f5))
* merge promise-lib functions into js-lib ([a32a8ba](https://github.com/NaturalCycles/js-lib/commit/a32a8ba))
* pRetry, @Retry, _tryCatch, @TryCatch ([7eb9b2d](https://github.com/NaturalCycles/js-lib/commit/7eb9b2d))
# [8.3.0](https://github.com/NaturalCycles/js-lib/compare/v8.2.1...v8.3.0) (2019-08-01)

@@ -2,0 +12,0 @@

16

dist-esm/index.js

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

import { Debounce, Throttle } from './decorators/debounce.decorator';
import { getArgsSignature } from './decorators/decorator.util';
import { logMethod } from './decorators/logMethod.decorator';
import { memo } from './decorators/memo.decorator';
import { Retry } from './decorators/retry.decorator';
import { AppError } from './error/app.error';
import { anyToAppError, anyToErrorMessage, anyToErrorObject, appErrorToErrorObject, appErrorToHttpError, errorObjectToAppError, errorObjectToHttpError, errorToErrorObject, } from './error/error.util';
import { HttpError } from './error/http.error';
import { AggregatedError } from './promise/aggregatedError';
import { pBatch } from './promise/pBatch';
import { pDefer } from './promise/pDefer';
import { pDelay } from './promise/pDelay';
import { pFilter } from './promise/pFilter';
import { pHang } from './promise/pHang';
import { pMap } from './promise/pMap';
import { pProps } from './promise/pProps';
import { pRetry } from './promise/pRetry';
import { pState } from './promise/pState';
import { _tryCatch, TryCatch } from './promise/tryCatch';
import { _chunk, _flatten, _flattenDeep, _range, _uniq, _uniqBy, by } from './util/array.util';
import { _debounce, _throttle } from './util/debounce';
import { deepEquals } from './util/deepEquals';

@@ -15,3 +29,3 @@ import { memoFn } from './util/memoFn';

import { _capitalize, _lowerFirst, _split, _upperFirst, removeWhitespace, resultToString, } from './util/string.util';
export { memo, memoFn, logMethod, getArgsSignature, AppError, HttpError, randomInt, loadScript, _capitalize, _upperFirst, _lowerFirst, _split, removeWhitespace, resultToString, _pick, _omit, filterFalsyValues, filterEmptyStringValues, filterUndefinedValues, filterObject, transformValues, objectNullValuesToUndefined, deepEquals, deepCopy, isObject, isEmptyObject, _merge, deepTrim, sortObjectDeep, _get, _set, _has, _unset, mask, getKeyByValue, _invert, invertMap, by, anyToErrorMessage, anyToErrorObject, anyToAppError, errorToErrorObject, errorObjectToAppError, errorObjectToHttpError, appErrorToErrorObject, appErrorToHttpError, _range, _uniq, _uniqBy, _flatten, _flattenDeep, _chunk, SimpleMovingAverage, };
export { memo, memoFn, logMethod, getArgsSignature, AppError, HttpError, randomInt, loadScript, _capitalize, _upperFirst, _lowerFirst, _split, removeWhitespace, resultToString, _pick, _omit, filterFalsyValues, filterEmptyStringValues, filterUndefinedValues, filterObject, transformValues, objectNullValuesToUndefined, deepEquals, deepCopy, isObject, isEmptyObject, _merge, deepTrim, sortObjectDeep, _get, _set, _has, _unset, mask, getKeyByValue, _invert, invertMap, by, anyToErrorMessage, anyToErrorObject, anyToAppError, errorToErrorObject, errorObjectToAppError, errorObjectToHttpError, appErrorToErrorObject, appErrorToHttpError, _range, _uniq, _uniqBy, _flatten, _flattenDeep, _chunk, SimpleMovingAverage, _debounce, _throttle, Debounce, Throttle, pMap, pBatch, pFilter, pProps, pDelay, pDefer, pHang, pState, AggregatedError, pRetry, Retry, _tryCatch, TryCatch, };
//# sourceMappingURL=index.js.map

@@ -0,1 +1,2 @@

import { Debounce, Throttle } from './decorators/debounce.decorator';
import { getArgsSignature } from './decorators/decorator.util';

@@ -5,2 +6,3 @@ import { logMethod } from './decorators/logMethod.decorator';

import { MemoCache } from './decorators/memo.util';
import { Retry } from './decorators/retry.decorator';
import { AppError } from './error/app.error';

@@ -10,4 +12,16 @@ import { Admin401ErrorData, Admin403ErrorData, ErrorData, ErrorObject, HttpErrorData, HttpErrorResponse } from './error/error.model';

import { HttpError } from './error/http.error';
import { AggregatedError } from './promise/aggregatedError';
import { pBatch, PBatchResult } from './promise/pBatch';
import { pDefer } from './promise/pDefer';
import { pDelay } from './promise/pDelay';
import { pFilter } from './promise/pFilter';
import { pHang } from './promise/pHang';
import { pMap } from './promise/pMap';
import { pProps } from './promise/pProps';
import { pRetry, PRetryOptions } from './promise/pRetry';
import { pState } from './promise/pState';
import { _tryCatch, TryCatch, TryCatchOptions } from './promise/tryCatch';
import { InstanceId, IsoDate, IsoDateTime, PromiseMap, StringMap, ValueOf, ValuesOf } from './types';
import { _chunk, _flatten, _flattenDeep, _range, _uniq, _uniqBy, by } from './util/array.util';
import { _debounce, _throttle } from './util/debounce';
import { deepEquals } from './util/deepEquals';

@@ -20,2 +34,2 @@ import { memoFn } from './util/memoFn';

import { _capitalize, _lowerFirst, _split, _upperFirst, removeWhitespace, resultToString } from './util/string.util';
export { memo, MemoCache, memoFn, logMethod, getArgsSignature, ErrorData, ErrorObject, HttpErrorData, HttpErrorResponse, AppError, HttpError, Admin401ErrorData, Admin403ErrorData, randomInt, loadScript, StringMap, PromiseMap, ValuesOf, ValueOf, InstanceId, IsoDate, IsoDateTime, _capitalize, _upperFirst, _lowerFirst, _split, removeWhitespace, resultToString, _pick, _omit, filterFalsyValues, filterEmptyStringValues, filterUndefinedValues, filterObject, transformValues, objectNullValuesToUndefined, deepEquals, deepCopy, isObject, isEmptyObject, _merge, deepTrim, sortObjectDeep, _get, _set, _has, _unset, mask, getKeyByValue, _invert, invertMap, by, anyToErrorMessage, anyToErrorObject, anyToAppError, errorToErrorObject, errorObjectToAppError, errorObjectToHttpError, appErrorToErrorObject, appErrorToHttpError, _range, _uniq, _uniqBy, _flatten, _flattenDeep, _chunk, SimpleMovingAverage, };
export { memo, MemoCache, memoFn, logMethod, getArgsSignature, ErrorData, ErrorObject, HttpErrorData, HttpErrorResponse, AppError, HttpError, Admin401ErrorData, Admin403ErrorData, randomInt, loadScript, StringMap, PromiseMap, ValuesOf, ValueOf, InstanceId, IsoDate, IsoDateTime, _capitalize, _upperFirst, _lowerFirst, _split, removeWhitespace, resultToString, _pick, _omit, filterFalsyValues, filterEmptyStringValues, filterUndefinedValues, filterObject, transformValues, objectNullValuesToUndefined, deepEquals, deepCopy, isObject, isEmptyObject, _merge, deepTrim, sortObjectDeep, _get, _set, _has, _unset, mask, getKeyByValue, _invert, invertMap, by, anyToErrorMessage, anyToErrorObject, anyToAppError, errorToErrorObject, errorObjectToAppError, errorObjectToHttpError, appErrorToErrorObject, appErrorToHttpError, _range, _uniq, _uniqBy, _flatten, _flattenDeep, _chunk, SimpleMovingAverage, _debounce, _throttle, Debounce, Throttle, pMap, pBatch, PBatchResult, pFilter, pProps, pDelay, pDefer, pHang, pState, AggregatedError, PRetryOptions, pRetry, Retry, _tryCatch, TryCatchOptions, TryCatch, };
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const debounce_decorator_1 = require("./decorators/debounce.decorator");
exports.Debounce = debounce_decorator_1.Debounce;
exports.Throttle = debounce_decorator_1.Throttle;
const decorator_util_1 = require("./decorators/decorator.util");

@@ -9,2 +12,4 @@ exports.getArgsSignature = decorator_util_1.getArgsSignature;

exports.memo = memo_decorator_1.memo;
const retry_decorator_1 = require("./decorators/retry.decorator");
exports.Retry = retry_decorator_1.Retry;
const app_error_1 = require("./error/app.error");

@@ -23,2 +28,25 @@ exports.AppError = app_error_1.AppError;

exports.HttpError = http_error_1.HttpError;
const aggregatedError_1 = require("./promise/aggregatedError");
exports.AggregatedError = aggregatedError_1.AggregatedError;
const pBatch_1 = require("./promise/pBatch");
exports.pBatch = pBatch_1.pBatch;
const pDefer_1 = require("./promise/pDefer");
exports.pDefer = pDefer_1.pDefer;
const pDelay_1 = require("./promise/pDelay");
exports.pDelay = pDelay_1.pDelay;
const pFilter_1 = require("./promise/pFilter");
exports.pFilter = pFilter_1.pFilter;
const pHang_1 = require("./promise/pHang");
exports.pHang = pHang_1.pHang;
const pMap_1 = require("./promise/pMap");
exports.pMap = pMap_1.pMap;
const pProps_1 = require("./promise/pProps");
exports.pProps = pProps_1.pProps;
const pRetry_1 = require("./promise/pRetry");
exports.pRetry = pRetry_1.pRetry;
const pState_1 = require("./promise/pState");
exports.pState = pState_1.pState;
const tryCatch_1 = require("./promise/tryCatch");
exports._tryCatch = tryCatch_1._tryCatch;
exports.TryCatch = tryCatch_1.TryCatch;
const array_util_1 = require("./util/array.util");

@@ -32,2 +60,5 @@ exports._chunk = array_util_1._chunk;

exports.by = array_util_1.by;
const debounce_1 = require("./util/debounce");
exports._debounce = debounce_1._debounce;
exports._throttle = debounce_1._throttle;
const deepEquals_1 = require("./util/deepEquals");

@@ -34,0 +65,0 @@ exports.deepEquals = deepEquals_1.deepEquals;

8

package.json
{
"name": "@naturalcycles/js-lib",
"version": "8.3.0",
"version": "8.4.0",
"scripts": {

@@ -11,8 +11,6 @@ "build": "del ./dist && tsc",

"dependencies": {
"type-fest": "^0.6.0"
"type-fest": "^0.7.1"
},
"devDependencies": {
"@naturalcycles/dev-lib": "^7.0.0",
"@naturalcycles/promise-lib": "^2.2.0",
"@naturalcycles/semantic-release": "^1.0.0",
"@naturalcycles/test-lib": "^1.0.2",

@@ -23,2 +21,3 @@ "@types/benchmark": "^1.0.31",

"jest": "^24.1.0",
"rxjs": "^6.5.2",
"weak": "^1.0.1"

@@ -37,2 +36,3 @@ },

"types": "dist/index.d.ts",
"sideEffects": false,
"engines": {

@@ -39,0 +39,0 @@ "node": ">=8.11"

@@ -15,3 +15,6 @@ ## @naturalcycles/js-lib

- Decorators
- `memo`, `memoCache`
- `@memo`, `@memoCache`
- `@Debounce`, `@Throttle`
- `@Retry`, `@TryCatch`
- ...
- Error

@@ -18,0 +21,0 @@ - `AppError`

@@ -0,1 +1,2 @@

import { Debounce, Throttle } from './decorators/debounce.decorator'
import { getArgsSignature } from './decorators/decorator.util'

@@ -5,2 +6,3 @@ import { logMethod } from './decorators/logMethod.decorator'

import { MemoCache } from './decorators/memo.util'
import { Retry } from './decorators/retry.decorator'
import { AppError } from './error/app.error'

@@ -26,4 +28,16 @@ import {

import { HttpError } from './error/http.error'
import { AggregatedError } from './promise/aggregatedError'
import { pBatch, PBatchResult } from './promise/pBatch'
import { pDefer } from './promise/pDefer'
import { pDelay } from './promise/pDelay'
import { pFilter } from './promise/pFilter'
import { pHang } from './promise/pHang'
import { pMap } from './promise/pMap'
import { pProps } from './promise/pProps'
import { pRetry, PRetryOptions } from './promise/pRetry'
import { pState } from './promise/pState'
import { _tryCatch, TryCatch, TryCatchOptions } from './promise/tryCatch'
import { InstanceId, IsoDate, IsoDateTime, PromiseMap, StringMap, ValueOf, ValuesOf } from './types'
import { _chunk, _flatten, _flattenDeep, _range, _uniq, _uniqBy, by } from './util/array.util'
import { _debounce, _throttle } from './util/debounce'
import { deepEquals } from './util/deepEquals'

@@ -135,2 +149,22 @@ import { memoFn } from './util/memoFn'

SimpleMovingAverage,
_debounce,
_throttle,
Debounce,
Throttle,
pMap,
pBatch,
PBatchResult,
pFilter,
pProps,
pDelay,
pDefer,
pHang,
pState,
AggregatedError,
PRetryOptions,
pRetry,
Retry,
_tryCatch,
TryCatchOptions,
TryCatch,
}

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