New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@itwin/core-bentley

Package Overview
Dependencies
Maintainers
2
Versions
1010
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@itwin/core-bentley - npm Package Compare versions

Comparing version 3.0.0-dev.101 to 3.0.0-dev.102

2

lib/cjs/Logger.d.ts

@@ -61,2 +61,4 @@ /** @packageDocumentation

static initializeToConsole(): void;
/** merge the supplied metadata with all static metadata into one object */
static getMetaData(metaData?: LoggingMetaData): object;
/** stringify the metadata for a log message by merging the supplied metadata with all static metadata into one object that is then `JSON.stringify`ed. */

@@ -63,0 +65,0 @@ static stringifyMetaData(metaData?: LoggingMetaData): string;

9

lib/cjs/Logger.js

@@ -48,4 +48,4 @@ "use strict";

}
/** stringify the metadata for a log message by merging the supplied metadata with all static metadata into one object that is then `JSON.stringify`ed. */
static stringifyMetaData(metaData) {
/** merge the supplied metadata with all static metadata into one object */
static getMetaData(metaData) {
const metaObj = {};

@@ -58,2 +58,7 @@ for (const meta of Logger.staticMetaData) {

Object.assign(metaObj, BentleyError_1.BentleyError.getMetaData(metaData)); // do this last so user supplied values take precedence
return metaObj;
}
/** stringify the metadata for a log message by merging the supplied metadata with all static metadata into one object that is then `JSON.stringify`ed. */
static stringifyMetaData(metaData) {
const metaObj = this.getMetaData(metaData);
return Object.keys(metaObj).length > 0 ? JSON.stringify(metaObj) : "";

@@ -60,0 +65,0 @@ }

@@ -61,2 +61,4 @@ /** @packageDocumentation

static initializeToConsole(): void;
/** merge the supplied metadata with all static metadata into one object */
static getMetaData(metaData?: LoggingMetaData): object;
/** stringify the metadata for a log message by merging the supplied metadata with all static metadata into one object that is then `JSON.stringify`ed. */

@@ -63,0 +65,0 @@ static stringifyMetaData(metaData?: LoggingMetaData): string;

@@ -45,4 +45,4 @@ /*---------------------------------------------------------------------------------------------

}
/** stringify the metadata for a log message by merging the supplied metadata with all static metadata into one object that is then `JSON.stringify`ed. */
static stringifyMetaData(metaData) {
/** merge the supplied metadata with all static metadata into one object */
static getMetaData(metaData) {
const metaObj = {};

@@ -55,2 +55,7 @@ for (const meta of Logger.staticMetaData) {

Object.assign(metaObj, BentleyError.getMetaData(metaData)); // do this last so user supplied values take precedence
return metaObj;
}
/** stringify the metadata for a log message by merging the supplied metadata with all static metadata into one object that is then `JSON.stringify`ed. */
static stringifyMetaData(metaData) {
const metaObj = this.getMetaData(metaData);
return Object.keys(metaObj).length > 0 ? JSON.stringify(metaObj) : "";

@@ -57,0 +62,0 @@ }

{
"name": "@itwin/core-bentley",
"version": "3.0.0-dev.101",
"version": "3.0.0-dev.102",
"description": "Bentley JavaScript core components",

@@ -25,4 +25,4 @@ "main": "lib/cjs/core-bentley.js",

"devDependencies": {
"@itwin/build-tools": "3.0.0-dev.101",
"@itwin/eslint-plugin": "3.0.0-dev.101",
"@itwin/build-tools": "3.0.0-dev.102",
"@itwin/eslint-plugin": "3.0.0-dev.102",
"@types/chai": "^4.1.4",

@@ -29,0 +29,0 @@ "@types/chai-as-promised": "^7",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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