@itwin/core-bentley
Advanced tools
Comparing version 4.10.0-dev.32 to 4.10.0-dev.33
@@ -34,3 +34,2 @@ "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 | ||
@@ -186,3 +185,2 @@ var DbResult; | ||
})(DbResult || (exports.DbResult = DbResult = {})); | ||
/* eslint-enable @typescript-eslint/naming-convention */ | ||
//# sourceMappingURL=BeSQLite.js.map |
@@ -51,3 +51,3 @@ "use strict"; | ||
const { byteOffset, byteLength } = bytes; | ||
return new ByteStream(bytes.buffer, { byteOffset, byteLength }); // eslint-disable-line deprecation/deprecation | ||
return new ByteStream(bytes.buffer, { byteOffset, byteLength }); // eslint-disable-line @typescript-eslint/no-deprecated | ||
} | ||
@@ -59,3 +59,3 @@ /** Construct a new ByteStream with the read position set to the beginning. | ||
static fromArrayBuffer(buffer, subView) { | ||
return new ByteStream(buffer, subView); // eslint-disable-line deprecation/deprecation | ||
return new ByteStream(buffer, subView); // eslint-disable-line @typescript-eslint/no-deprecated | ||
} | ||
@@ -62,0 +62,0 @@ /** The number of bytes in this stream */ |
@@ -20,3 +20,2 @@ "use strict"; | ||
function isIDisposable(obj) { | ||
// eslint-disable-next-line @typescript-eslint/unbound-method | ||
return !!obj && (obj instanceof Object) && !!obj.dispose && (typeof obj.dispose === "function"); | ||
@@ -23,0 +22,0 @@ } |
@@ -10,3 +10,3 @@ /** @packageDocumentation | ||
*/ | ||
export declare const staticLoggerMetadata: Map<String, LoggingMetaData>; | ||
export declare const staticLoggerMetadata: Map<string, LoggingMetaData>; | ||
//# sourceMappingURL=staticLoggerMetadata.d.ts.map |
@@ -72,3 +72,3 @@ /** @packageDocumentation | ||
*/ | ||
function isNonEmptyObject(value: any): value is Object; | ||
function isNonEmptyObject(value: any): value is object; | ||
/** | ||
@@ -75,0 +75,0 @@ * Convert the input object into a "pure" JavaScript object, with only instances of "object" or primitives in the returned value. |
@@ -31,3 +31,3 @@ "use strict"; | ||
static get isIPadBrowser() { | ||
return this.isBrowserProcess && window.navigator.platform === "iPad" || (window.navigator.platform === "MacIntel" && window.navigator.maxTouchPoints > 0 && !("MSStream" in window)); /* eslint-disable-line deprecation/deprecation */ | ||
return this.isBrowserProcess && window.navigator.platform === "iPad" || (window.navigator.platform === "MacIntel" && window.navigator.maxTouchPoints > 0 && !("MSStream" in window)); /* eslint-disable-line @typescript-eslint/no-deprecated */ | ||
} | ||
@@ -34,0 +34,0 @@ /** Is this process running in a browser on an iPhone? |
@@ -30,4 +30,4 @@ "use strict"; | ||
function base64StringToUint8Array(base64) { | ||
return new Uint8Array(atob(base64).split("").map((c) => c.charCodeAt(0))); // eslint-disable-line deprecation/deprecation | ||
return new Uint8Array(atob(base64).split("").map((c) => c.charCodeAt(0))); | ||
} | ||
//# sourceMappingURL=StringUtils.js.map |
@@ -72,3 +72,3 @@ "use strict"; | ||
} | ||
/* eslint-disable deprecation/deprecation -- lots of self-references here... */ | ||
/* eslint-disable @typescript-eslint/no-deprecated -- lots of self-references here... */ | ||
/** | ||
@@ -145,3 +145,3 @@ * Enables OpenTelemetry tracing in addition to traditional logging. | ||
} | ||
catch (_e) { } // avoid throwing random errors (with stack trace mangled by async hooks) when openTelemetry collector doesn't work | ||
catch { } // avoid throwing random errors (with stack trace mangled by async hooks) when openTelemetry collector doesn't work | ||
const spanContext = Tracing._openTelemetry.trace.getSpan(oTelContext)?.spanContext(); | ||
@@ -167,3 +167,3 @@ base(category, message, { | ||
exports.Tracing = Tracing; | ||
/* eslint-enable deprecation/deprecation */ | ||
/* eslint-enable @typescript-eslint/no-deprecated */ | ||
//# sourceMappingURL=Tracing.js.map |
@@ -40,3 +40,3 @@ "use strict"; | ||
} | ||
catch (_) { | ||
catch { | ||
// ignore errors from telemetry trackers | ||
@@ -43,0 +43,0 @@ } |
@@ -60,3 +60,3 @@ /** @packageDocumentation | ||
export type NonFunctionPropertyNamesOf<T> = { | ||
[K in keyof T]: T[K] extends Function ? never : K; | ||
[K in keyof T]: T[K] extends (...args: any) => any ? never : K; | ||
}[keyof T]; | ||
@@ -98,3 +98,3 @@ /** Produces a type consisting of all of the public properties of `T` except for those of type `function`. | ||
export type PickMethods<T> = { | ||
[P in keyof T]: T[P] extends Function ? T[P] : never; | ||
[P in keyof T]: T[P] extends (...args: any) => any ? T[P] : never; | ||
}; | ||
@@ -112,3 +112,3 @@ /** The members of `T` that are functions that do not return a Promise | ||
*/ | ||
export declare function omit<T extends {}, K extends readonly (keyof T)[]>(t: T, keys: K): Omit<T, K[number]>; | ||
export declare function omit<T extends object, K extends readonly (keyof T)[]>(t: T, keys: K): Omit<T, K[number]>; | ||
/** Defines a type wherein at least one of the properties of T is required to exist. | ||
@@ -115,0 +115,0 @@ * In the following example, paying for a coffee requires a customer to have either a credit card, some cash, or both in their wallet. |
@@ -31,3 +31,2 @@ /*--------------------------------------------------------------------------------------------- | ||
*/ | ||
/* 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 | ||
@@ -183,3 +182,2 @@ export var DbResult; | ||
})(DbResult || (DbResult = {})); | ||
/* eslint-enable @typescript-eslint/naming-convention */ | ||
//# sourceMappingURL=BeSQLite.js.map |
@@ -48,3 +48,3 @@ /*--------------------------------------------------------------------------------------------- | ||
const { byteOffset, byteLength } = bytes; | ||
return new ByteStream(bytes.buffer, { byteOffset, byteLength }); // eslint-disable-line deprecation/deprecation | ||
return new ByteStream(bytes.buffer, { byteOffset, byteLength }); // eslint-disable-line @typescript-eslint/no-deprecated | ||
} | ||
@@ -56,3 +56,3 @@ /** Construct a new ByteStream with the read position set to the beginning. | ||
static fromArrayBuffer(buffer, subView) { | ||
return new ByteStream(buffer, subView); // eslint-disable-line deprecation/deprecation | ||
return new ByteStream(buffer, subView); // eslint-disable-line @typescript-eslint/no-deprecated | ||
} | ||
@@ -59,0 +59,0 @@ /** The number of bytes in this stream */ |
@@ -13,3 +13,2 @@ /*--------------------------------------------------------------------------------------------- | ||
export function isIDisposable(obj) { | ||
// eslint-disable-next-line @typescript-eslint/unbound-method | ||
return !!obj && (obj instanceof Object) && !!obj.dispose && (typeof obj.dispose === "function"); | ||
@@ -16,0 +15,0 @@ } |
@@ -10,3 +10,3 @@ /** @packageDocumentation | ||
*/ | ||
export declare const staticLoggerMetadata: Map<String, LoggingMetaData>; | ||
export declare const staticLoggerMetadata: Map<string, LoggingMetaData>; | ||
//# sourceMappingURL=staticLoggerMetadata.d.ts.map |
@@ -72,3 +72,3 @@ /** @packageDocumentation | ||
*/ | ||
function isNonEmptyObject(value: any): value is Object; | ||
function isNonEmptyObject(value: any): value is object; | ||
/** | ||
@@ -75,0 +75,0 @@ * Convert the input object into a "pure" JavaScript object, with only instances of "object" or primitives in the returned value. |
@@ -28,3 +28,3 @@ /*--------------------------------------------------------------------------------------------- | ||
static get isIPadBrowser() { | ||
return this.isBrowserProcess && window.navigator.platform === "iPad" || (window.navigator.platform === "MacIntel" && window.navigator.maxTouchPoints > 0 && !("MSStream" in window)); /* eslint-disable-line deprecation/deprecation */ | ||
return this.isBrowserProcess && window.navigator.platform === "iPad" || (window.navigator.platform === "MacIntel" && window.navigator.maxTouchPoints > 0 && !("MSStream" in window)); /* eslint-disable-line @typescript-eslint/no-deprecated */ | ||
} | ||
@@ -31,0 +31,0 @@ /** Is this process running in a browser on an iPhone? |
@@ -26,4 +26,4 @@ /*--------------------------------------------------------------------------------------------- | ||
export function base64StringToUint8Array(base64) { | ||
return new Uint8Array(atob(base64).split("").map((c) => c.charCodeAt(0))); // eslint-disable-line deprecation/deprecation | ||
return new Uint8Array(atob(base64).split("").map((c) => c.charCodeAt(0))); | ||
} | ||
//# sourceMappingURL=StringUtils.js.map |
@@ -69,3 +69,3 @@ /*--------------------------------------------------------------------------------------------- | ||
} | ||
/* eslint-disable deprecation/deprecation -- lots of self-references here... */ | ||
/* eslint-disable @typescript-eslint/no-deprecated -- lots of self-references here... */ | ||
/** | ||
@@ -142,3 +142,3 @@ * Enables OpenTelemetry tracing in addition to traditional logging. | ||
} | ||
catch (_e) { } // avoid throwing random errors (with stack trace mangled by async hooks) when openTelemetry collector doesn't work | ||
catch { } // avoid throwing random errors (with stack trace mangled by async hooks) when openTelemetry collector doesn't work | ||
const spanContext = Tracing._openTelemetry.trace.getSpan(oTelContext)?.spanContext(); | ||
@@ -163,3 +163,3 @@ base(category, message, { | ||
} | ||
/* eslint-enable deprecation/deprecation */ | ||
/* eslint-enable @typescript-eslint/no-deprecated */ | ||
//# sourceMappingURL=Tracing.js.map |
@@ -37,3 +37,3 @@ /*--------------------------------------------------------------------------------------------- | ||
} | ||
catch (_) { | ||
catch { | ||
// ignore errors from telemetry trackers | ||
@@ -40,0 +40,0 @@ } |
@@ -60,3 +60,3 @@ /** @packageDocumentation | ||
export type NonFunctionPropertyNamesOf<T> = { | ||
[K in keyof T]: T[K] extends Function ? never : K; | ||
[K in keyof T]: T[K] extends (...args: any) => any ? never : K; | ||
}[keyof T]; | ||
@@ -98,3 +98,3 @@ /** Produces a type consisting of all of the public properties of `T` except for those of type `function`. | ||
export type PickMethods<T> = { | ||
[P in keyof T]: T[P] extends Function ? T[P] : never; | ||
[P in keyof T]: T[P] extends (...args: any) => any ? T[P] : never; | ||
}; | ||
@@ -112,3 +112,3 @@ /** The members of `T` that are functions that do not return a Promise | ||
*/ | ||
export declare function omit<T extends {}, K extends readonly (keyof T)[]>(t: T, keys: K): Omit<T, K[number]>; | ||
export declare function omit<T extends object, K extends readonly (keyof T)[]>(t: T, keys: K): Omit<T, K[number]>; | ||
/** Defines a type wherein at least one of the properties of T is required to exist. | ||
@@ -115,0 +115,0 @@ * In the following example, paying for a coffee requires a customer to have either a credit card, some cash, or both in their wallet. |
{ | ||
"name": "@itwin/core-bentley", | ||
"version": "4.10.0-dev.32", | ||
"version": "4.10.0-dev.33", | ||
"description": "Bentley JavaScript core components", | ||
@@ -25,11 +25,11 @@ "main": "lib/cjs/core-bentley.js", | ||
"devDependencies": { | ||
"@itwin/eslint-plugin": "^4.0.2", | ||
"@itwin/eslint-plugin": "5.0.0-dev.1", | ||
"@opentelemetry/api": "1.0.4", | ||
"@types/node": "~18.16.20", | ||
"@vitest/coverage-v8": "^2.1.0", | ||
"eslint": "^8.56.0", | ||
"eslint": "^9.13.0", | ||
"rimraf": "^3.0.2", | ||
"typescript": "~5.6.2", | ||
"vitest": "^2.1.0", | ||
"@itwin/build-tools": "4.10.0-dev.32" | ||
"@itwin/build-tools": "4.10.0-dev.33" | ||
}, | ||
@@ -48,5 +48,5 @@ "nyc": { | ||
"cover": "vitest --run --coverage", | ||
"lint": "eslint -f visualstudio \"./src/**/*.ts\" 1>&2", | ||
"lint": "eslint \"./src/**/*.ts\" 1>&2", | ||
"lint-fix": "eslint --fix -f visualstudio \"./src/**/*.ts\" 1>&2" | ||
} | ||
} |
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
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2051857
18851