Socket
Socket
Sign inDemoInstall

@bentley/context-registry-client

Package Overview
Dependencies
Maintainers
4
Versions
503
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bentley/context-registry-client - npm Package Compare versions

Comparing version 3.0.0-dev.71 to 3.0.0-dev.72

2

lib/ContextRegistryClient.d.ts

@@ -1,2 +0,2 @@

import { AccessToken } from "@bentley/bentleyjs-core";
import { AccessToken } from "@itwin/core-bentley";
import { RequestOptions } from "@bentley/itwin-client";

@@ -3,0 +3,0 @@ import { ITwin, ITwinAccess, ITwinQueryArg } from "./ITwinAccessProps";

/** @packageDocumentation
* @module ContextRegistry
*/
import { AccessToken } from "@bentley/bentleyjs-core";
import { AccessToken } from "@itwin/core-bentley";
/** The iTwin context object, for generalized properties of Projects, Assets, custom contexts, etc.

@@ -6,0 +6,0 @@ * @beta

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

// @todo Update example with property type conversions once that's available.
const bentleyjs_core_1 = require("@bentley/bentleyjs-core");
const core_bentley_1 = require("@itwin/core-bentley");
const WsgLoggerCategory_1 = require("./WsgLoggerCategory");

@@ -293,3 +293,3 @@ const loggerCategory = WsgLoggerCategory_1.WsgClientLoggerCategory.ECJson;

if (!mappedClassEntry) {
bentleyjs_core_1.Logger.logError(loggerCategory, `Type ${typedConstructor.name} is not mapped to an ECClass. Supply the appropriate class decorator`);
core_bentley_1.Logger.logError(loggerCategory, `Type ${typedConstructor.name} is not mapped to an ECClass. Supply the appropriate class decorator`);
return undefined;

@@ -300,3 +300,3 @@ }

if (!mappedApplicationEntry) {
bentleyjs_core_1.Logger.logError(loggerCategory, `Type ${typedConstructor.name} is not mapped for the supplied application.`);
core_bentley_1.Logger.logError(loggerCategory, `Type ${typedConstructor.name} is not mapped for the supplied application.`);
return undefined;

@@ -310,7 +310,7 @@ }

else {
(0, bentleyjs_core_1.assert)(false, "Unexpected classKeyMapInfo");
(0, core_bentley_1.assert)(false, "Unexpected classKeyMapInfo");
return undefined;
}
if (mappedApplicationEntry.classKey !== ecJsonClassKey) {
bentleyjs_core_1.Logger.logError(loggerCategory, `The ClassKey ${mappedApplicationEntry.classKey} was specified to map with ${typedConstructor.name}, but does not match that specified in the JSON: ${ecJsonClassKey} `);
core_bentley_1.Logger.logError(loggerCategory, `The ClassKey ${mappedApplicationEntry.classKey} was specified to map with ${typedConstructor.name}, but does not match that specified in the JSON: ${ecJsonClassKey} `);
return undefined;

@@ -393,3 +393,3 @@ }

else {
(0, bentleyjs_core_1.assert)(false, "Unexpected classKeyMapInfo");
(0, core_bentley_1.assert)(false, "Unexpected classKeyMapInfo");
return undefined;

@@ -396,0 +396,0 @@ }

@@ -1,2 +0,2 @@

import { AccessToken, GetMetaDataFunction, HttpStatus } from "@bentley/bentleyjs-core";
import { AccessToken, GetMetaDataFunction, HttpStatus } from "@itwin/core-bentley";
import { Client, DefaultRequestOptionsProvider, RequestOptions, RequestQueryOptions, RequestTimeoutOptions, ResponseError } from "@bentley/itwin-client";

@@ -3,0 +3,0 @@ import { ChunkedQueryContext } from "./ChunkedQueryContext";

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

const lodash_1 = require("lodash");
const bentleyjs_core_1 = require("@bentley/bentleyjs-core");
const core_bentley_1 = require("@itwin/core-bentley");
const itwin_client_1 = require("@bentley/itwin-client");

@@ -99,3 +99,3 @@ const ChunkedQueryContext_1 = require("./ChunkedQueryContext");

}
if (super.parseHttpStatus(response.statusType) === bentleyjs_core_1.HttpStatus.Success) {
if (super.parseHttpStatus(response.statusType) === core_bentley_1.HttpStatus.Success) {
return false;

@@ -121,4 +121,4 @@ }

WSStatus.TooManyBadLoginAttempts,
bentleyjs_core_1.HttpStatus.ServerError,
bentleyjs_core_1.HttpStatus.ClientError,
core_bentley_1.HttpStatus.ServerError,
core_bentley_1.HttpStatus.ClientError,
WSStatus.Unknown,

@@ -139,7 +139,7 @@ ];

}
if (super.parseHttpStatus(httpStatusType) === bentleyjs_core_1.HttpStatus.ServerError) {
return bentleyjs_core_1.HttpStatus.ServerError;
if (super.parseHttpStatus(httpStatusType) === core_bentley_1.HttpStatus.ServerError) {
return core_bentley_1.HttpStatus.ServerError;
}
if (super.parseHttpStatus(httpStatusType) === bentleyjs_core_1.HttpStatus.ClientError) {
return bentleyjs_core_1.HttpStatus.ClientError;
if (super.parseHttpStatus(httpStatusType) === core_bentley_1.HttpStatus.ClientError) {
return core_bentley_1.HttpStatus.ClientError;
}

@@ -194,3 +194,3 @@ return WSStatus.Unknown;

log() {
bentleyjs_core_1.Logger.logError(loggerCategory, this.logMessage(), () => this.getMetaData());
core_bentley_1.Logger.logError(loggerCategory, this.logMessage(), () => this.getMetaData());
}

@@ -288,3 +288,3 @@ }

const url = await this.getUrl() + relativeUrlPath;
bentleyjs_core_1.Logger.logInfo(loggerCategory, "Sending POST request", () => ({ url }));
core_bentley_1.Logger.logInfo(loggerCategory, "Sending POST request", () => ({ url }));
const untypedInstance = ECJsonTypeMap_1.ECJsonTypeMap.toJson("wsg", instance);

@@ -313,3 +313,3 @@ const options = {

}
bentleyjs_core_1.Logger.logTrace(loggerCategory, "Successful POST request", () => ({ url }));
core_bentley_1.Logger.logTrace(loggerCategory, "Successful POST request", () => ({ url }));
return typedInstance;

@@ -328,3 +328,3 @@ }

const url = await this.getUrl() + relativeUrlPath;
bentleyjs_core_1.Logger.logInfo(loggerCategory, "Sending POST request", () => ({ url }));
core_bentley_1.Logger.logInfo(loggerCategory, "Sending POST request", () => ({ url }));
const untypedInstances = instances.map((value) => ECJsonTypeMap_1.ECJsonTypeMap.toJson("wsg", value));

@@ -358,3 +358,3 @@ const options = {

});
bentleyjs_core_1.Logger.logTrace(loggerCategory, "Successful POST request", () => ({ url }));
core_bentley_1.Logger.logTrace(loggerCategory, "Successful POST request", () => ({ url }));
return changedInstances;

@@ -375,3 +375,3 @@ }

const url = await this.getUrl() + relativeUrlPath;
bentleyjs_core_1.Logger.logInfo(loggerCategory, "Sending GET request", () => ({ url }));
core_bentley_1.Logger.logInfo(loggerCategory, "Sending GET request", () => ({ url }));
const chunkedQueryContext = queryOptions ? ChunkedQueryContext_1.ChunkedQueryContext.create(queryOptions) : undefined;

@@ -383,3 +383,3 @@ const typedInstances = new Array();

} while (chunkedQueryContext && !chunkedQueryContext.isQueryFinished);
bentleyjs_core_1.Logger.logTrace(loggerCategory, "Successful GET request", () => ({ url }));
core_bentley_1.Logger.logTrace(loggerCategory, "Successful GET request", () => ({ url }));
return typedInstances;

@@ -461,3 +461,3 @@ }

const url = `${await this.getUrl()}${relativeUrlPath}$query`;
bentleyjs_core_1.Logger.logInfo(loggerCategory, "Sending POST request", () => ({ url }));
core_bentley_1.Logger.logInfo(loggerCategory, "Sending POST request", () => ({ url }));
const options = {

@@ -482,3 +482,3 @@ method: "POST",

}
bentleyjs_core_1.Logger.logTrace(loggerCategory, "Successful POST request", () => ({ url }));
core_bentley_1.Logger.logTrace(loggerCategory, "Successful POST request", () => ({ url }));
return typedInstances;

@@ -485,0 +485,0 @@ }

{
"name": "@bentley/context-registry-client",
"version": "3.0.0-dev.71",
"version": "3.0.0-dev.72",
"description": "iModel.js Context Registry Client",

@@ -28,12 +28,12 @@ "main": "lib/context-registry-client.js",

"peerDependencies": {
"@bentley/bentleyjs-core": "^3.0.0-dev.71",
"@bentley/itwin-client": "^3.0.0-dev.71"
"@itwin/core-bentley": "^3.0.0-dev.72",
"@bentley/itwin-client": "^3.0.0-dev.72"
},
"devDependencies": {
"@bentley/bentleyjs-core": "3.0.0-dev.71",
"@bentley/build-tools": "3.0.0-dev.71",
"@bentley/certa": "3.0.0-dev.71",
"@bentley/eslint-plugin": "3.0.0-dev.71",
"@bentley/itwin-client": "3.0.0-dev.71",
"@bentley/oidc-signin-tool": "3.0.0-dev.71",
"@itwin/core-bentley": "3.0.0-dev.72",
"@itwin/build-tools": "3.0.0-dev.72",
"@itwin/certa": "3.0.0-dev.72",
"@itwin/eslint-plugin": "3.0.0-dev.72",
"@bentley/itwin-client": "3.0.0-dev.72",
"@itwin/oidc-signin-tool": "3.0.0-dev.72",
"@types/chai": "^4.1.4",

@@ -57,5 +57,5 @@ "@types/deep-assign": "^0.1.0",

"plugins": [
"@bentley"
"@itwin"
],
"extends": "plugin:@bentley/imodeljs-recommended"
"extends": "plugin:@itwin/itwinjs-recommended"
},

@@ -62,0 +62,0 @@ "scripts": {

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