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

ozone-typescript-client

Package Overview
Dependencies
Maintainers
5
Versions
153
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ozone-typescript-client - npm Package Compare versions

Comparing version 0.9.17 to 0.9.18

3

dist/index.d.ts

@@ -152,2 +152,5 @@ import { fsm } from 'typescript-state-machine';

}
class SessionCredentials extends OzoneCredentials {
authenticate(ozoneURL: string): Promise<AuthInfo>;
}
class ItemByQueryCredentials extends OzoneCredentials {

@@ -154,0 +157,0 @@ readonly typeIdentifier: string;

@@ -301,7 +301,6 @@ var __extends = (this && this.__extends) || (function () {

_a._authInfo = _b.sent();
this.log.debug("Authenticated with authInfo : " + this._authInfo);
this.log.debug("Authenticated with authInfo : " + JSON.stringify(this._authInfo));
return [3 /*break*/, 4];
case 3:
e_1 = _b.sent();
this.log.debug("DENIS//// " + e_1);
response = e_1;

@@ -865,2 +864,24 @@ this.log.debug("Authentication error : code " + response.status);

OzoneClient.ItemCredentials = ItemCredentials;
var SessionCredentials = /** @class */ (function (_super) {
__extends(SessionCredentials, _super);
function SessionCredentials() {
return _super !== null && _super.apply(this, arguments) || this;
}
SessionCredentials.prototype.authenticate = function (ozoneURL) {
return __awaiter(this, void 0, void 0, function () {
var httpClient, request;
return __generator(this, function (_a) {
httpClient = newHttpClient();
request = new Request(ozoneURL + "/rest/v3/authentication/current/session")
.set({
method: 'GET',
withCredentials: true
});
return [2 /*return*/, (httpClient.call(request))];
});
});
};
return SessionCredentials;
}(OzoneCredentials));
OzoneClient.SessionCredentials = SessionCredentials;
var ItemByQueryCredentials = /** @class */ (function (_super) {

@@ -888,3 +909,2 @@ __extends(ItemByQueryCredentials, _super);

});
// log.debug(`REQ: ${JSON.stringify(request)}`)
return [2 /*return*/, (httpClient.call(request))];

@@ -891,0 +911,0 @@ });

2

package.json
{
"name": "ozone-typescript-client",
"version": "0.9.17",
"version": "0.9.18",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/index.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

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