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

@obelisk/ngx

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@obelisk/ngx - npm Package Compare versions

Comparing version 2.3.0 to 2.4.0

2

bundles/obelisk-ngx.umd.js

@@ -77,3 +77,3 @@ (function (global, factory) {

var options = this._client.options;
this._namespace = options.host + "/" + options.realm + "/" + options.apiVersion + "/";
this._namespace = options.host + "/";
}

@@ -80,0 +80,0 @@ return this._namespace;

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@obelisk/client"),require("rxjs"),require("rxjs/operators"),require("@angular/common")):"function"==typeof define&&define.amd?define("@obelisk/ngx",["exports","@angular/core","@obelisk/client","rxjs","rxjs/operators","@angular/common"],t):t(((e=e||self).obelisk=e.obelisk||{},e.obelisk.ngx={}),e.ng.core,e.client,e.rxjs,e.rxjs.operators,e.ng.common)}(this,function(e,t,n,r,i,o){"use strict";var s=function(){function e(){this._client=null,this._namespace=null,this._events$=new r.ReplaySubject(1)}return e.prototype.initService=function(e){var t=this;return this._client=new n.ObeliskClient(e,this._events$),this._client.init().pipe(i.flatMap(function(e){return e?t._client.getNewRpt():r.of(!1)})).toPromise()},Object.defineProperty(e.prototype,"client",{get:function(){if(null==this._client)throw Error("Client not initialised, did you currectly setup the APP_INITIALIZER bootstrap sequence? (See README)");return this._client},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"namespace",{get:function(){if(!this._namespace){var e=this._client.options;this._namespace=e.host+"/"+e.realm+"/"+e.apiVersion+"/"}return this._namespace},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"userspace",{get:function(){try{if(this._client.tokens.rpt){var e=this._client.tokens.rpt.getParsedToken().preferred_username;return this.namespace+e+"."}return null}catch(e){return null}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"events$",{get:function(){return this._events$},enumerable:!0,configurable:!0}),e.decorators=[{type:t.Injectable}],e.ctorParameters=function(){return[]},e}();var u=new t.InjectionToken("OBELISK_OPTIONS"),c=function(){function e(){}return e.forRoot=function(t){return{ngModule:e,providers:[s,{provide:u,useValue:t}]}},e.decorators=[{type:t.NgModule,args:[{imports:[o.CommonModule]}]}],e}();var l=[s,u];e.OBELISK_DEPS=l,e.OBELISK_OPTIONS=u,e.ObeliskNgxModule=c,e.ObeliskService=s,e.factory=function(e,t){return function(){return e.initService(t)}},Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@obelisk/client"),require("rxjs"),require("rxjs/operators"),require("@angular/common")):"function"==typeof define&&define.amd?define("@obelisk/ngx",["exports","@angular/core","@obelisk/client","rxjs","rxjs/operators","@angular/common"],t):t(((e=e||self).obelisk=e.obelisk||{},e.obelisk.ngx={}),e.ng.core,e.client,e.rxjs,e.rxjs.operators,e.ng.common)}(this,function(e,t,n,r,i,o){"use strict";var s=function(){function e(){this._client=null,this._namespace=null,this._events$=new r.ReplaySubject(1)}return e.prototype.initService=function(e){var t=this;return this._client=new n.ObeliskClient(e,this._events$),this._client.init().pipe(i.flatMap(function(e){return e?t._client.getNewRpt():r.of(!1)})).toPromise()},Object.defineProperty(e.prototype,"client",{get:function(){if(null==this._client)throw Error("Client not initialised, did you currectly setup the APP_INITIALIZER bootstrap sequence? (See README)");return this._client},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"namespace",{get:function(){if(!this._namespace){var e=this._client.options;this._namespace=e.host+"/"}return this._namespace},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"userspace",{get:function(){try{if(this._client.tokens.rpt){var e=this._client.tokens.rpt.getParsedToken().preferred_username;return this.namespace+e+"."}return null}catch(e){return null}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"events$",{get:function(){return this._events$},enumerable:!0,configurable:!0}),e.decorators=[{type:t.Injectable}],e.ctorParameters=function(){return[]},e}();var u=new t.InjectionToken("OBELISK_OPTIONS"),c=function(){function e(){}return e.forRoot=function(t){return{ngModule:e,providers:[s,{provide:u,useValue:t}]}},e.decorators=[{type:t.NgModule,args:[{imports:[o.CommonModule]}]}],e}();var l=[s,u];e.OBELISK_DEPS=l,e.OBELISK_OPTIONS=u,e.ObeliskNgxModule=c,e.ObeliskService=s,e.factory=function(e,t){return function(){return e.initService(t)}},Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=obelisk-ngx.umd.min.js.map

@@ -50,3 +50,3 @@ /**

const options = this._client.options;
this._namespace = `${options.host}/${options.realm}/${options.apiVersion}/`;
this._namespace = `${options.host}/`;
}

@@ -105,2 +105,2 @@ return this._namespace;

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2JlbGlzay5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG9iZWxpc2svbmd4LyIsInNvdXJjZXMiOlsibGliL29iZWxpc2suc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEVBQThCLGFBQWEsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQzVFLE9BQU8sRUFBYyxFQUFFLEVBQUUsYUFBYSxFQUFXLE1BQU0sTUFBTSxDQUFDO0FBQzlELE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUd6QyxNQUFNLE9BQU8sY0FBYztJQUt6QjtRQUpRLFlBQU8sR0FBeUIsSUFBSSxDQUFDO1FBQ3JDLGVBQVUsR0FBa0IsSUFBSSxDQUFDO1FBSXZDLElBQUksQ0FBQyxRQUFRLEdBQUcsSUFBSSxhQUFhLENBQUMsQ0FBQyxDQUFDLENBQUM7SUFDdkMsQ0F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sbDtcclxuICAgIH1cclxuICB9XHJcblxyXG4gIC8qKlxyXG4gICAqIEhvdCBvYnNlcnZhYmxlIHRoYXQgZW1pdHMgQ2xpZW50RXZlbnRzLlxyXG4gICAqL1xyXG4gIGdldCBldmVudHMkKCk6IE9ic2VydmFibGU8Q2xpZW50RXZlbnQ+IHtcclxuICAgIHJldHVybiB0aGlzLl9ldmVudHMkO1xyXG4gIH1cclxuXHJcbn0iXX0=

@@ -75,3 +75,3 @@ /**

var options = this._client.options;
this._namespace = options.host + "/" + options.realm + "/" + options.apiVersion + "/";
this._namespace = options.host + "/";
}

@@ -150,2 +150,2 @@ return this._namespace;

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2JlbGlzay5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG9iZWxpc2svbmd4LyIsInNvdXJjZXMiOlsibGliL29iZWxpc2suc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7O0FBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEVBQThCLGFBQWEsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQzVFLE9BQU8sRUFBYyxFQUFFLEVBQUUsYUFBYSxFQUFXLE1BQU0sTUFBTSxDQUFDO0FBQzlELE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUV6QztJQU1FO1FBSlEsWUFBTyxHQUF5QixJQUFJLENBQUM7UUFDckMsZUFBVSxHQUFrQixJQUFJLENBQUM7UUFJdkMsSUFBSSxDQUFDLFFBQVEsR0FBRyxJQUFJLGFBQWEsQ0FBQyxDQUFDLENBQUMsQ0FBQztJQUN2QyxDQUFDO0lBRUQ7Ozs7O09BS0c7Ozs7Ozs7O0lBQ0ksb0NBQVc7Ozs7Ozs7SUFBbEIsVUFBbUIsa0JBQTBDO1FBQTdELGlCQ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GdldCB1c2Vyc3BhY2UoKTogc3RyaW5nIHwgbnVsbCB7XHJcbiAgICB0cnkge1xyXG4gICAgICBpZiAodGhpcy5fY2xpZW50LnRva2Vucy5ycHQpIHtcclxuICAgICAgICBjb25zdCB1c2Vyc3BhY2UgPSB0aGlzLl9jbGllbnQudG9rZW5zLnJwdC5nZXRQYXJzZWRUb2tlbigpLnByZWZlcnJlZF91c2VybmFtZTtcclxuICAgICAgICByZXR1cm4gdGhpcy5uYW1lc3BhY2UgKyB1c2Vyc3BhY2UgKyAnLic7XHJcbiAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgcmV0dXJuIG51bGw7XHJcbiAgICAgIH1cclxuICAgIH0gY2F0Y2ggKGVycikge1xyXG4gICAgICByZXR1cm4gbnVsbDtcclxuICAgIH1cclxuICB9XHJcblxyXG4gIC8qKlxyXG4gICAqIEhvdCBvYnNlcnZhYmxlIHRoYXQgZW1pdHMgQ2xpZW50RXZlbnRzLlxyXG4gICAqL1xyXG4gIGdldCBldmVudHMkKCk6IE9ic2VydmFibGU8Q2xpZW50RXZlbnQ+IHtcclxuICAgIHJldHVybiB0aGlzLl9ldmVudHMkO1xyXG4gIH1cclxuXHJcbn0iXX0=

@@ -52,3 +52,3 @@ import { Injectable, InjectionToken, NgModule } from '@angular/core';

const options = this._client.options;
this._namespace = `${options.host}/${options.realm}/${options.apiVersion}/`;
this._namespace = `${options.host}/`;
}

@@ -55,0 +55,0 @@ return this._namespace;

@@ -77,3 +77,3 @@ import { Injectable, InjectionToken, NgModule } from '@angular/core';

var options = this._client.options;
this._namespace = options.host + "/" + options.realm + "/" + options.apiVersion + "/";
this._namespace = options.host + "/";
}

@@ -80,0 +80,0 @@ return this._namespace;

{
"name": "@obelisk/ngx",
"version": "2.3.0",
"version": "2.4.0",
"peerDependencies": {

@@ -5,0 +5,0 @@ "@angular/common": "^8.2.3",

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