Socket
Socket
Sign inDemoInstall

kuzzle-sdk

Package Overview
Dependencies
Maintainers
1
Versions
175
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kuzzle-sdk - npm Package Compare versions

Comparing version 7.11.0 to 7.11.1

2

dist/kuzzle.js.LICENSE.txt

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

/*! Kuzzle Javascript SDK version 7.11.0 */
/*! Kuzzle Javascript SDK version 7.11.1 */
{
"name": "kuzzle-sdk",
"version": "7.11.0",
"version": "7.11.1",
"description": "Official Javascript SDK for Kuzzle",

@@ -5,0 +5,0 @@ "author": "The Kuzzle Team <support@kuzzle.io>",

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

import { KuzzleAbstractProtocol } from "./abstract/Base";
import { HttpRoutes, JSONObject } from "../types";
import { RequestPayload } from "../types/RequestPayload";
import { KuzzleAbstractProtocol } from "./abstract/Base";
/**

@@ -5,0 +5,0 @@ * Http protocol used to connect to a Kuzzle server.

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

Object.defineProperty(exports, "__esModule", { value: true });
const Base_1 = require("./abstract/Base");
const routes_json_1 = __importDefault(require("./routes.json"));
const Base_1 = require("./abstract/Base");
/**

@@ -299,2 +299,6 @@ * Http protocol used to connect to a Kuzzle server.

}
const contentType = response.headers["content-type"];
if (!contentType || !contentType.includes("application/json")) {
return response.body;
}
return JSON.parse(response.body);

@@ -320,2 +324,7 @@ });

try {
const contentType = xhr.getResponseHeader("Content-Type");
if (!contentType || !contentType.includes("application/json")) {
resolve(xhr.responseText);
return;
}
const json = JSON.parse(xhr.responseText);

@@ -322,0 +331,0 @@ resolve(json);

Sorry, the diff of this file is too big to display

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