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 2.1.0 to 2.2.0

dist-esm/error/error.shared.util.js

7

CHANGELOG.md

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

# [2.2.0](https://github.com/NaturalCycles/js-lib/compare/v2.1.0...v2.2.0) (2019-02-22)
### Features
* err.data.userMessage > err.data.userFriendly (boolean) ([27ff0ab](https://github.com/NaturalCycles/js-lib/commit/27ff0ab))
# [2.1.0](https://github.com/NaturalCycles/js-lib/compare/v2.0.2...v2.1.0) (2019-02-16)

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

2

dist-esm/index.js
import { memo } from './decorators/memo.decorator';
import { memoCache } from './decorators/memoCache.decorator';
import { AppError } from './error/app.error';
import { errorSharedUtil } from './error/error.shared.util';
import { HttpError } from './error/http.error';
import { LOG_LEVEL } from './log/log.shared.model';
import { deepFreeze, runAllTests, silentConsole, silentConsoleIfRunAll, } from './testing/test.shared.util';
import { errorSharedUtil } from './util/error.shared.util';
import { objectUtil } from './util/object.util';

@@ -9,0 +9,0 @@ import { randomSharedUtil } from './util/random.shared.util';

@@ -12,5 +12,5 @@ import { StringMap } from '../types';

/**
* User-friendly error (e.g in User's language).
* If error.message is user-friendly (can be shown to the user "as is")
*/
userMessage?: string;
userFriendly?: boolean;
/**

@@ -17,0 +17,0 @@ * Error id in some error tracking system (e.g Sentry).

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

import { ErrorData, ErrorObject, ErrorResponse, HttpErrorData } from './error/error.model';
import { errorSharedUtil } from './error/error.shared.util';
import { HttpError } from './error/http.error';

@@ -10,3 +11,2 @@ import { BasicLogFunction, LOG_LEVEL, LogFunction } from './log/log.shared.model';

import { ClassType, PromiseMap, StringMap } from './types';
import { errorSharedUtil } from './util/error.shared.util';
import { objectUtil } from './util/object.util';

@@ -13,0 +13,0 @@ import { randomSharedUtil } from './util/random.shared.util';

@@ -9,2 +9,4 @@ "use strict";

exports.AppError = app_error_1.AppError;
const error_shared_util_1 = require("./error/error.shared.util");
exports.errorSharedUtil = error_shared_util_1.errorSharedUtil;
const http_error_1 = require("./error/http.error");

@@ -19,4 +21,2 @@ exports.HttpError = http_error_1.HttpError;

exports.silentConsoleIfRunAll = test_shared_util_1.silentConsoleIfRunAll;
const error_shared_util_1 = require("./util/error.shared.util");
exports.errorSharedUtil = error_shared_util_1.errorSharedUtil;
const object_util_1 = require("./util/object.util");

@@ -23,0 +23,0 @@ exports.objectUtil = object_util_1.objectUtil;

{
"name": "@naturalcycles/js-lib",
"version": "2.1.0",
"version": "2.2.0",
"scripts": {

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

@@ -14,5 +14,5 @@ import { StringMap } from '../types'

/**
* User-friendly error (e.g in User's language).
* If error.message is user-friendly (can be shown to the user "as is")
*/
userMessage?: string
userFriendly?: boolean

@@ -19,0 +19,0 @@ /**

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

import { ErrorData, ErrorObject, ErrorResponse, HttpErrorData } from './error/error.model'
import { errorSharedUtil } from './error/error.shared.util'
import { HttpError } from './error/http.error'

@@ -15,3 +16,2 @@ import { BasicLogFunction, LOG_LEVEL, LogFunction } from './log/log.shared.model'

import { ClassType, PromiseMap, StringMap } from './types'
import { errorSharedUtil } from './util/error.shared.util'
import { objectUtil } from './util/object.util'

@@ -18,0 +18,0 @@ import { randomSharedUtil } from './util/random.shared.util'

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