@avanio/variable-util
Advanced tools
+4
-2
@@ -1105,4 +1105,5 @@ import { Loadable } from '@luolapeikko/ts-common'; | ||
| * @param {string} message - The error message | ||
| * @param {ErrorOptions} [options] - The error options | ||
| */ | ||
| constructor(message: string); | ||
| constructor(message: string, options?: ErrorOptions); | ||
| } | ||
@@ -1123,4 +1124,5 @@ | ||
| * @param {string} message - The error message. | ||
| * @param {ErrorOptions} [options] - The error options | ||
| */ | ||
| constructor(variableKey: string, message: string); | ||
| constructor(variableKey: string, message: string, options?: ErrorOptions); | ||
| } | ||
@@ -1127,0 +1129,0 @@ |
+4
-2
@@ -1105,4 +1105,5 @@ import { Loadable } from '@luolapeikko/ts-common'; | ||
| * @param {string} message - The error message | ||
| * @param {ErrorOptions} [options] - The error options | ||
| */ | ||
| constructor(message: string); | ||
| constructor(message: string, options?: ErrorOptions); | ||
| } | ||
@@ -1123,4 +1124,5 @@ | ||
| * @param {string} message - The error message. | ||
| * @param {ErrorOptions} [options] - The error options | ||
| */ | ||
| constructor(variableKey: string, message: string); | ||
| constructor(variableKey: string, message: string, options?: ErrorOptions); | ||
| } | ||
@@ -1127,0 +1129,0 @@ |
+6
-6
@@ -203,7 +203,7 @@ "use strict"; | ||
| * @param {string} message - The error message | ||
| * @param {ErrorOptions} [options] - The error options | ||
| */ | ||
| constructor(message) { | ||
| super(message); | ||
| constructor(message, options) { | ||
| super(message, options); | ||
| this.name = "VariableError"; | ||
| Error.captureStackTrace(this, this.constructor); | ||
| } | ||
@@ -1195,8 +1195,8 @@ }; | ||
| * @param {string} message - The error message. | ||
| * @param {ErrorOptions} [options] - The error options | ||
| */ | ||
| constructor(variableKey, message) { | ||
| super(message); | ||
| constructor(variableKey, message, options) { | ||
| super(message, options); | ||
| this.variableKey = variableKey; | ||
| this.name = "VariableLookupError"; | ||
| Error.captureStackTrace(this, this.constructor); | ||
| } | ||
@@ -1203,0 +1203,0 @@ }; |
+6
-6
@@ -137,7 +137,7 @@ var __defProp = Object.defineProperty; | ||
| * @param {string} message - The error message | ||
| * @param {ErrorOptions} [options] - The error options | ||
| */ | ||
| constructor(message) { | ||
| super(message); | ||
| constructor(message, options) { | ||
| super(message, options); | ||
| this.name = "VariableError"; | ||
| Error.captureStackTrace(this, this.constructor); | ||
| } | ||
@@ -1129,8 +1129,8 @@ }; | ||
| * @param {string} message - The error message. | ||
| * @param {ErrorOptions} [options] - The error options | ||
| */ | ||
| constructor(variableKey, message) { | ||
| super(message); | ||
| constructor(variableKey, message, options) { | ||
| super(message, options); | ||
| this.variableKey = variableKey; | ||
| this.name = "VariableLookupError"; | ||
| Error.captureStackTrace(this, this.constructor); | ||
| } | ||
@@ -1137,0 +1137,0 @@ }; |
+1
-1
| { | ||
| "name": "@avanio/variable-util", | ||
| "version": "1.2.0", | ||
| "version": "1.2.1", | ||
| "description": "Utility to get variables from multiple resources", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
428132
0.12%4052
0.05%