@rarible/logger
Advanced tools
Comparing version 0.10.0-alpha.31 to 0.10.0-alpha.35
import type { RequestInit } from "node-fetch"; | ||
import type { ErrorOptions } from "@rarible/utils"; | ||
import { CustomError } from "@rarible/utils"; | ||
import type { ErrorOptions } from "@rarible/utils/error/custom/index"; | ||
import { CustomError } from "@rarible/utils/error/custom/index"; | ||
export declare class Warning<T = void> extends CustomError<T> { | ||
@@ -5,0 +5,0 @@ } |
@@ -6,7 +6,7 @@ "use strict"; | ||
const tg = tslib_1.__importStar(require("generic-type-guard")); | ||
const utils_1 = require("@rarible/utils"); | ||
class Warning extends utils_1.CustomError { | ||
const index_1 = require("@rarible/utils/error/custom/index"); | ||
class Warning extends index_1.CustomError { | ||
} | ||
exports.Warning = Warning; | ||
class NetworkError extends utils_1.CustomError { | ||
class NetworkError extends index_1.CustomError { | ||
constructor(options) { | ||
@@ -13,0 +13,0 @@ super(JSON.stringify(options, null, " "), { |
@@ -7,3 +7,3 @@ "use strict"; | ||
const json_stringify_safe_1 = tslib_1.__importDefault(require("json-stringify-safe")); | ||
const utils_1 = require("@rarible/utils"); | ||
const index_1 = require("@rarible/utils/error/utils/index"); | ||
const UNKNOWN = `[unknown]`; | ||
@@ -48,3 +48,3 @@ function stringifyObject(maxByteSize, object, indent = 2) { | ||
return `[date: ${value.toISOString()}]`; | ||
if ((0, utils_1.isErrorLike)(value)) | ||
if ((0, index_1.isErrorLike)(value)) | ||
return `[${value.name}: ${value.message}]`; | ||
@@ -51,0 +51,0 @@ return UNKNOWN; |
{ | ||
"name": "@rarible/logger", | ||
"version": "0.10.0-alpha.31", | ||
"private": false, | ||
"version": "0.10.0-alpha.35", | ||
"description": "Logging utility for ts projects", | ||
"homepage": "https://github.com/rarible/ts-common", | ||
"repository": { | ||
@@ -11,19 +11,59 @@ "type": "git", | ||
"license": "MIT", | ||
"type": "module", | ||
"exports": { | ||
".": { | ||
"types": { | ||
"require": "./build/index.d.ts", | ||
"import": "./esm/index.d.ts" | ||
}, | ||
"require": "./build/index.js", | ||
"import": "./esm/index.js", | ||
"node": "./build/index.js", | ||
"default": "./build/index.js" | ||
}, | ||
"./*": { | ||
"types": { | ||
"require": "./build/*.d.ts", | ||
"import": "./esm/*.d.ts" | ||
}, | ||
"require": "./build/*.js", | ||
"import": "./esm/*.js", | ||
"node": "./build/*.js", | ||
"default": "./build/*.js" | ||
}, | ||
"./esm/*": { | ||
"types": "./esm/*.d.ts", | ||
"require": "./esm/*.js", | ||
"import": "./esm/*.js", | ||
"node": "./build/*.js", | ||
"default": "./esm/*/index.js" | ||
}, | ||
"./build/*": { | ||
"types": "./build/*.d.ts", | ||
"require": "./build/*.js", | ||
"import": "./build/*.js", | ||
"node": "./build/*.js", | ||
"default": "./build/*/index.js" | ||
} | ||
}, | ||
"main": "build/index.js", | ||
"module": "build/esm/index.js", | ||
"types": "build/esm/index.d.ts", | ||
"module": "esm/index.js", | ||
"types": "esm/index.d.ts", | ||
"files": [ | ||
"/build" | ||
"build", | ||
"esm" | ||
], | ||
"scripts": { | ||
"build": "tsc -b tsconfig-build-cjs.json tsconfig-build-esm.json", | ||
"clean": "rimraf ./build", | ||
"build": "run-s build:*", | ||
"build:cjs": "tsc -p tsconfig.cjs.json --outDir ./build && printf '{\"type\":\"commonjs\"}' > ./build/package.json", | ||
"build:esm": "tsc -p tsconfig.esm.json --outDir ./esm && printf '{\"type\":\"module\"}' > ./esm/package.json", | ||
"clean": "rimraf ./build ./esm ./tsconfig.tsbuildinfo", | ||
"test": "jest --passWithNoTests", | ||
"verify": "tsc --noEmit" | ||
"verify": "tsc" | ||
}, | ||
"dependencies": { | ||
"@rarible/utils": "^0.10.0-alpha.31", | ||
"@rarible/utils": "^0.10.0-alpha.35", | ||
"generic-type-guard": "^3.7.2", | ||
"json-stringify-safe": "^5.0.1", | ||
"object-sizeof": "^2.6.3" | ||
"object-sizeof": "^2.6.4" | ||
}, | ||
@@ -36,3 +76,4 @@ "devDependencies": { | ||
"axios": ">=0.24.0 <1.0.0", | ||
"tslib": ">=2.0.0 <3.0.0" | ||
"tslib": ">=2.0.0 <3.0.0", | ||
"typescript": ">=4.7.0 <6.0.0" | ||
}, | ||
@@ -42,2 +83,5 @@ "peerDependenciesMeta": { | ||
"optional": true | ||
}, | ||
"typescript": { | ||
"optional": true | ||
} | ||
@@ -49,3 +93,3 @@ }, | ||
}, | ||
"gitHead": "6e8bd3709c12c0d2d70eca4cbbd8fa5d0465e5de" | ||
"gitHead": "e2f22f22727e92c4f3c26f7faa5ba75f8b0a0d8e" | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
95322
65
1
Yes
7
1
+ Addedtypescript@5.7.3(transitive)
Updatedobject-sizeof@^2.6.4