Socket
Socket
Sign inDemoInstall

@sajari/sdk-node

Package Overview
Dependencies
47
Maintainers
5
Versions
49
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0-alpha.9 to 4.0.0-alpha.10

build/src/generated/model/apiError.d.ts

3

build/src/api-util.js

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

if (resp.body) {
const f = api_1.ObjectSerializer.deserialize(resp.body, "ModelError");
return f;
return api_1.ObjectSerializer.deserialize(resp.body, "ApiError");
}

@@ -14,0 +13,0 @@ }

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

});
test("server error turns into thrown APIError", async () => {
test("server error turns into thrown ApiError", async () => {
server_1.server.use(server_1.rest.post(`${api_util_1.endpoint}/v4/collections`, async (req, res, ctx) => res(ctx.status(400), ctx.json(api_util_1.errorResponse(3, "msg")))));

@@ -31,3 +31,3 @@ const client = createClient();

catch (e) {
expect(e).toBeInstanceOf(_1.APIError);
expect(e).toBeInstanceOf(_1.ApiError);
expect(e).toEqual(expect.objectContaining({

@@ -34,0 +34,0 @@ code: 3,

@@ -24,3 +24,3 @@ /// <reference types="node" />

export * from "./listSchemaFieldsResponse";
export * from "./modelError";
export * from "./apiError";
export * from "./pipeline";

@@ -27,0 +27,0 @@ export * from "./pipelineStep";

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

__exportStar(require("./listSchemaFieldsResponse"), exports);
__exportStar(require("./modelError"), exports);
__exportStar(require("./apiError"), exports);
__exportStar(require("./pipeline"), exports);

@@ -91,3 +91,3 @@ __exportStar(require("./pipelineStep"), exports);

const listSchemaFieldsResponse_1 = require("./listSchemaFieldsResponse");
const modelError_1 = require("./modelError");
const apiError_1 = require("./apiError");
const pipeline_1 = require("./pipeline");

@@ -166,3 +166,3 @@ const pipelineStep_1 = require("./pipelineStep");

ListSchemaFieldsResponse: listSchemaFieldsResponse_1.ListSchemaFieldsResponse,
ModelError: modelError_1.ModelError,
ApiError: apiError_1.ApiError,
Pipeline: pipeline_1.Pipeline,

@@ -169,0 +169,0 @@ PipelineStep: pipelineStep_1.PipelineStep,

@@ -6,2 +6,2 @@ export { withEndpoint, withKeyCredentials } from "./client";

export { RecordsClient } from "./records";
export { HttpError, ModelError as APIError, SchemaFieldType, SchemaField, SchemaFieldMode, } from "./generated/api";
export { HttpError, ApiError, SchemaFieldType, SchemaField, SchemaFieldMode, } from "./generated/api";
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SchemaFieldMode = exports.SchemaField = exports.SchemaFieldType = exports.APIError = exports.HttpError = exports.RecordsClient = exports.PipelinesClient = exports.SchemaClient = exports.setCollectionAuthorizedQueryDomains = exports.setCollectionDisplayName = exports.CollectionsClient = exports.withKeyCredentials = exports.withEndpoint = void 0;
exports.SchemaFieldMode = exports.SchemaField = exports.SchemaFieldType = exports.ApiError = exports.HttpError = exports.RecordsClient = exports.PipelinesClient = exports.SchemaClient = exports.setCollectionAuthorizedQueryDomains = exports.setCollectionDisplayName = exports.CollectionsClient = exports.withKeyCredentials = exports.withEndpoint = void 0;
var client_1 = require("./client");

@@ -19,3 +19,3 @@ Object.defineProperty(exports, "withEndpoint", { enumerable: true, get: function () { return client_1.withEndpoint; } });

Object.defineProperty(exports, "HttpError", { enumerable: true, get: function () { return api_1.HttpError; } });
Object.defineProperty(exports, "APIError", { enumerable: true, get: function () { return api_1.ModelError; } });
Object.defineProperty(exports, "ApiError", { enumerable: true, get: function () { return api_1.ApiError; } });
Object.defineProperty(exports, "SchemaFieldType", { enumerable: true, get: function () { return api_1.SchemaFieldType; } });

@@ -22,0 +22,0 @@ Object.defineProperty(exports, "SchemaField", { enumerable: true, get: function () { return api_1.SchemaField; } });

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

export declare const version = "4.0.0-alpha.9";
export declare const version = "4.0.0-alpha.10";

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

exports.version = void 0;
exports.version = "4.0.0-alpha.9";
exports.version = "4.0.0-alpha.10";
//# sourceMappingURL=version.js.map
{
"name": "@sajari/sdk-node",
"version": "4.0.0-alpha.9",
"version": "4.0.0-alpha.10",
"repository": "git@github.com:github.com/sajari/sdk-node.git",

@@ -5,0 +5,0 @@ "author": "Sajari Pty Ltd",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc