Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bentley/bentleyjs-core

Package Overview
Dependencies
Maintainers
4
Versions
524
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bentley/bentleyjs-core - npm Package Compare versions

Comparing version 2.4.2 to 2.5.0

15

CHANGELOG.json

@@ -5,2 +5,17 @@ {

{
"version": "2.5.0",
"tag": "@bentley/bentleyjs-core_v2.5.0",
"date": "Thu, 20 Aug 2020 20:57:09 GMT",
"comments": {
"none": [
{
"comment": "Introduce IModelApp security options (including CSRF protection)."
},
{
"comment": "Switch to ESLint"
}
]
}
},
{
"version": "2.4.2",

@@ -7,0 +22,0 @@ "tag": "@bentley/bentleyjs-core_v2.4.2",

10

CHANGELOG.md
# Change Log - @bentley/bentleyjs-core
This log was last generated on Fri, 14 Aug 2020 16:34:09 GMT and should not be manually modified.
This log was last generated on Thu, 20 Aug 2020 20:57:09 GMT and should not be manually modified.
## 2.5.0
Thu, 20 Aug 2020 20:57:09 GMT
### Updates
- Introduce IModelApp security options (including CSRF protection).
- Switch to ESLint
## 2.4.2

@@ -6,0 +14,0 @@ Fri, 14 Aug 2020 16:34:09 GMT

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

*/
/* eslint-disable @typescript-eslint/naming-convention */
// Disabling for the rest of the file since eslint does not correctly parse the entire enum, only parts of it
var DbResult;

@@ -181,2 +183,3 @@ (function (DbResult) {

})(DbResult = exports.DbResult || (exports.DbResult = {}));
/* eslint-enable @typescript-eslint/naming-convention */
/** Options that specify how to apply ChangeSets.

@@ -183,0 +186,0 @@ * @public

@@ -65,2 +65,6 @@ /** @packageDocumentation

userId?: string;
csrfToken?: {
headerName: string;
headerValue: string;
};
}

@@ -67,0 +71,0 @@ /** Used by Logger to set ClientRequestContext metadata

@@ -15,2 +15,3 @@ "use strict";

function isIDisposable(obj) {
// eslint-disable-next-line @typescript-eslint/unbound-method
return !!obj && (obj instanceof Object) && !!obj.dispose && (typeof obj.dispose === "function");

@@ -17,0 +18,0 @@ }

2

lib/ElectronUtils.js

@@ -19,3 +19,3 @@ "use strict";

try {
return require("electron"); // tslint:disable-line:no-var-requires
return require("electron"); // eslint-disable-line @typescript-eslint/no-var-requires
}

@@ -22,0 +22,0 @@ catch (error) { }

@@ -68,6 +68,9 @@ /** @packageDocumentation

function fromUint32Pair(lowBytes: number, highBytes: number): Id64String;
/** @internal */
/** Returns true if the inputs represent two halves of a valid 64-bit Id.
* @see [[Id64.Uint32Pair]].
*/
function isValidUint32Pair(lowBytes: number, highBytes: number): boolean;
/** Represents an unsigned 64-bit integer as a pair of unsigned 32-bit integers.
* @see [[Id64.getUint32Pair]]
* @see [[Id64.isValidUint32Pair]]
*/

@@ -74,0 +77,0 @@ interface Uint32Pair {

@@ -208,3 +208,5 @@ "use strict";

Id64.fromUint32Pair = fromUint32Pair;
/** @internal */
/** Returns true if the inputs represent two halves of a valid 64-bit Id.
* @see [[Id64.Uint32Pair]].
*/
function isValidUint32Pair(lowBytes, highBytes) {

@@ -211,0 +213,0 @@ // Detect local ID of zero

@@ -71,4 +71,5 @@ "use strict";

static initializeToConsole() {
// tslint:disable:no-console
/* eslint-disable no-console */
Logger.initialize((category, message, getMetaData) => console.log("Error |" + category + "| " + message + Logger.formatMetaData(getMetaData)), (category, message, getMetaData) => console.log("Warning |" + category + "| " + message + Logger.formatMetaData(getMetaData)), (category, message, getMetaData) => console.log("Info |" + category + "| " + message + Logger.formatMetaData(getMetaData)), (category, message, getMetaData) => console.log("Trace |" + category + "| " + message + Logger.formatMetaData(getMetaData)));
/* eslint-enable no-console */
}

@@ -337,3 +338,3 @@ /** Register a metadata source to the logger.

let startNext = 0;
// tslint:disable-next-line:no-conditional-assignment
// eslint-disable-next-line no-cond-assign
while ((startMacro = str.indexOf("${", startNext)) !== -1) {

@@ -340,0 +341,0 @@ const endMacro = str.indexOf("}", startMacro + 2);

@@ -32,3 +32,3 @@ "use strict";

/** Call the [[run]] method supplied to the ctor to start the underlying Promise. */
start() { this._run(...this._args).then((val) => this._resolve(val)); } // tslint:disable-line:no-floating-promises
start() { this._run(...this._args).then((val) => this._resolve(val)); } // eslint-disable-line @typescript-eslint/no-floating-promises
}

@@ -35,0 +35,0 @@ /**

{
"name": "@bentley/bentleyjs-core",
"version": "2.4.2",
"version": "2.5.0",
"description": "Bentley JavaScript core components",

@@ -21,3 +21,3 @@ "main": "lib/bentleyjs-core.js",

"cover:docs": "node ./node_modules/@bentley/build-tools/scripts/docscoverage.js",
"lint": "tslint --project . 1>&2"
"lint": "eslint ./src/**/*.ts 1>&2"
},

@@ -34,3 +34,3 @@ "keywords": [

"devDependencies": {
"@bentley/build-tools": "2.4.2",
"@bentley/build-tools": "2.5.0",
"@types/chai": "^4.1.4",

@@ -42,6 +42,5 @@ "@types/chai-as-promised": "^7",

"chai-as-promised": "^7",
"eslint": "^6.8.0",
"mocha": "^5.2.0",
"rimraf": "^3.0.2",
"tslint": "^5.11.0",
"tslint-etc": "^1.5.2",
"typescript": "~3.7.4",

@@ -53,3 +52,6 @@ "ts-node": "^7.0.1",

"nycrc-path": "./node_modules/@bentley/build-tools/.nycrc"
},
"eslintConfig": {
"extends": "./node_modules/@bentley/build-tools/.eslintrc.js"
}
}

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

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

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

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