ng-sapphiredb
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -205,8 +205,9 @@ (function (global, factory) { | ||
var SAPPHIRE_DB_OPTIONS = new core.InjectionToken('sapphire-db.options'); | ||
var SAPPHIRE_DB_STARTUP_TOKEN = new core.InjectionToken('sapphire-db.startup-token'); | ||
var SapphireDbService = /** @class */ (function (_super) { | ||
__extends(SapphireDbService, _super); | ||
function SapphireDbService(options, storage, classTransformer, ngZone) { | ||
function SapphireDbService(options, storage, classTransformer, ngZone, startupToken) { | ||
var _this = _super.call(this, options, storage, classTransformer, function (executeCode) { | ||
_this.ngZone.run(executeCode); | ||
}) || this; | ||
}, startupToken) || this; | ||
_this.ngZone = ngZone; | ||
@@ -219,3 +220,4 @@ return _this; | ||
{ type: sapphiredb.SapphireClassTransformer, decorators: [{ type: core.Optional }] }, | ||
{ type: core.NgZone } | ||
{ type: core.NgZone }, | ||
{ type: String, decorators: [{ type: core.Optional }, { type: core.Inject, args: [SAPPHIRE_DB_STARTUP_TOKEN,] }] } | ||
]; }; | ||
@@ -227,5 +229,6 @@ SapphireDbService = __decorate([ | ||
__param(2, core.Optional()), | ||
__param(4, core.Optional()), __param(4, core.Inject(SAPPHIRE_DB_STARTUP_TOKEN)), | ||
__metadata("design:paramtypes", [Object, sapphiredb.SapphireStorage, | ||
sapphiredb.SapphireClassTransformer, | ||
core.NgZone]) | ||
core.NgZone, String]) | ||
], SapphireDbService); | ||
@@ -252,2 +255,3 @@ return SapphireDbService; | ||
exports.SAPPHIRE_DB_OPTIONS = SAPPHIRE_DB_OPTIONS; | ||
exports.SAPPHIRE_DB_STARTUP_TOKEN = SAPPHIRE_DB_STARTUP_TOKEN; | ||
exports.SapphireDbModule = SapphireDbModule; | ||
@@ -254,0 +258,0 @@ exports.SapphireDbService = SapphireDbService; |
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("sapphiredb")):"function"==typeof define&&define.amd?define("ng-sapphiredb",["exports","@angular/core","sapphiredb"],t):t((e=e||self)["ng-sapphiredb"]={},e.ng.core,e.sapphiredb)}(this,(function(e,t,r){"use strict"; | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("sapphiredb")):"function"==typeof define&&define.amd?define("ng-sapphiredb",["exports","@angular/core","sapphiredb"],t):t((e=e||self)["ng-sapphiredb"]={},e.ng.core,e.sapphiredb)}(this,(function(e,t,n){"use strict"; | ||
/*! ***************************************************************************** | ||
@@ -15,3 +15,3 @@ Copyright (c) Microsoft Corporation. All rights reserved. | ||
and limitations under the License. | ||
***************************************************************************** */var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function o(e,t,r,n){var o,p=arguments.length,i=p<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(p<3?o(i):p>3?o(t,r,i):o(t,r))||i);return p>3&&i&&Object.defineProperty(t,r,i),i}function p(e,t){return function(r,n){t(r,n,e)}}function i(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}var a=new t.InjectionToken("sapphire-db.options"),c=function(e){function c(t,r,n,o){var p=e.call(this,t,r,n,(function(e){p.ngZone.run(e)}))||this;return p.ngZone=o,p}return function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(c,e),c.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[a]}]},{type:r.SapphireStorage,decorators:[{type:t.Optional}]},{type:r.SapphireClassTransformer,decorators:[{type:t.Optional}]},{type:t.NgZone}]},c=o([t.Injectable(),p(0,t.Inject(a)),p(1,t.Optional()),p(2,t.Optional()),i("design:paramtypes",[Object,r.SapphireStorage,r.SapphireClassTransformer,t.NgZone])],c)}(r.SapphireDb),f=function(){function e(){}return e=o([t.NgModule({imports:[],declarations:[],providers:[c,{provide:a,useValue:null}]})],e)}();e.SAPPHIRE_DB_OPTIONS=a,e.SapphireDbModule=f,e.SapphireDbService=c,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
***************************************************************************** */var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t,n,r){var o,p=arguments.length,i=p<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(i=(p<3?o(i):p>3?o(t,n,i):o(t,n))||i);return p>3&&i&&Object.defineProperty(t,n,i),i}function p(e,t){return function(n,r){t(n,r,e)}}function i(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}var a=new t.InjectionToken("sapphire-db.options"),c=new t.InjectionToken("sapphire-db.startup-token"),f=function(e){function f(t,n,r,o,p){var i=e.call(this,t,n,r,(function(e){i.ngZone.run(e)}),p)||this;return i.ngZone=o,i}return function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(f,e),f.ctorParameters=function(){return[{type:void 0,decorators:[{type:t.Inject,args:[a]}]},{type:n.SapphireStorage,decorators:[{type:t.Optional}]},{type:n.SapphireClassTransformer,decorators:[{type:t.Optional}]},{type:t.NgZone},{type:String,decorators:[{type:t.Optional},{type:t.Inject,args:[c]}]}]},f=o([t.Injectable(),p(0,t.Inject(a)),p(1,t.Optional()),p(2,t.Optional()),p(4,t.Optional()),p(4,t.Inject(c)),i("design:paramtypes",[Object,n.SapphireStorage,n.SapphireClassTransformer,t.NgZone,String])],f)}(n.SapphireDb),u=function(){function e(){}return e=o([t.NgModule({imports:[],declarations:[],providers:[f,{provide:a,useValue:null}]})],e)}();e.SAPPHIRE_DB_OPTIONS=a,e.SAPPHIRE_DB_STARTUP_TOKEN=c,e.SapphireDbModule=u,e.SapphireDbService=f,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
//# sourceMappingURL=ng-sapphiredb.umd.min.js.map |
@@ -5,7 +5,8 @@ import { __decorate, __metadata, __param } from "tslib"; | ||
export const SAPPHIRE_DB_OPTIONS = new InjectionToken('sapphire-db.options'); | ||
export const SAPPHIRE_DB_STARTUP_TOKEN = new InjectionToken('sapphire-db.startup-token'); | ||
let SapphireDbService = class SapphireDbService extends SapphireDb { | ||
constructor(options, storage, classTransformer, ngZone) { | ||
constructor(options, storage, classTransformer, ngZone, startupToken) { | ||
super(options, storage, classTransformer, (executeCode) => { | ||
this.ngZone.run(executeCode); | ||
}); | ||
}, startupToken); | ||
this.ngZone = ngZone; | ||
@@ -18,3 +19,4 @@ } | ||
{ type: SapphireClassTransformer, decorators: [{ type: Optional }] }, | ||
{ type: NgZone } | ||
{ type: NgZone }, | ||
{ type: String, decorators: [{ type: Optional }, { type: Inject, args: [SAPPHIRE_DB_STARTUP_TOKEN,] }] } | ||
]; | ||
@@ -26,7 +28,8 @@ SapphireDbService = __decorate([ | ||
__param(2, Optional()), | ||
__param(4, Optional()), __param(4, Inject(SAPPHIRE_DB_STARTUP_TOKEN)), | ||
__metadata("design:paramtypes", [Object, SapphireStorage, | ||
SapphireClassTransformer, | ||
NgZone]) | ||
NgZone, String]) | ||
], SapphireDbService); | ||
export { SapphireDbService }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2FwcGhpcmUtZGIuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25nLXNhcHBoaXJlZGIvIiwic291cmNlcyI6WyJsaWIvc2FwcGhpcmUtZGIuc2VydmljZS50cyJdLCJuYW1lcyI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h0ZW5kcyBTYXBwaGlyZURiIHtcclxuICBjb25zdHJ1Y3RvcihASW5qZWN0KFNBUFBISVJFX0RCX09QVElPTlMpIG9wdGlvbnM6IFNhcHBoaXJlRGJPcHRpb25zLFxyXG4gICAgICAgICAgICAgIEBPcHRpb25hbCgpIHN0b3JhZ2U6IFNhcHBoaXJlU3RvcmFnZSxcclxuICAgICAgICAgICAgICBAT3B0aW9uYWwoKSBjbGFzc1RyYW5zZm9ybWVyOiBTYXBwaGlyZUNsYXNzVHJhbnNmb3JtZXIsXHJcbiAgICAgICAgICAgICAgcHJpdmF0ZSBuZ1pvbmU6IE5nWm9uZSxcclxuICAgICAgICAgICAgICBAT3B0aW9uYWwoKSBASW5qZWN0KFNBUFBISVJFX0RCX1NUQVJUVVBfVE9LRU4pIHN0YXJ0dXBUb2tlbjogc3RyaW5nKSB7XHJcbiAgICBzdXBlcihvcHRpb25zLCBzdG9yYWdlLCBjbGFzc1RyYW5zZm9ybWVyLCAoZXhlY3V0ZUNvZGU6ICgpID0+IHZvaWQpID0+IHtcclxuICAgICAgdGhpcy5uZ1pvbmUucnVuKGV4ZWN1dGVDb2RlKTtcclxuICAgIH0sIHN0YXJ0dXBUb2tlbik7XHJcbiAgfVxyXG59XHJcbiJdfQ== |
@@ -5,8 +5,9 @@ import { __decorate, __extends, __metadata, __param } from "tslib"; | ||
export var SAPPHIRE_DB_OPTIONS = new InjectionToken('sapphire-db.options'); | ||
export var SAPPHIRE_DB_STARTUP_TOKEN = new InjectionToken('sapphire-db.startup-token'); | ||
var SapphireDbService = /** @class */ (function (_super) { | ||
__extends(SapphireDbService, _super); | ||
function SapphireDbService(options, storage, classTransformer, ngZone) { | ||
function SapphireDbService(options, storage, classTransformer, ngZone, startupToken) { | ||
var _this = _super.call(this, options, storage, classTransformer, function (executeCode) { | ||
_this.ngZone.run(executeCode); | ||
}) || this; | ||
}, startupToken) || this; | ||
_this.ngZone = ngZone; | ||
@@ -19,3 +20,4 @@ return _this; | ||
{ type: SapphireClassTransformer, decorators: [{ type: Optional }] }, | ||
{ type: NgZone } | ||
{ type: NgZone }, | ||
{ type: String, decorators: [{ type: Optional }, { type: Inject, args: [SAPPHIRE_DB_STARTUP_TOKEN,] }] } | ||
]; }; | ||
@@ -27,5 +29,6 @@ SapphireDbService = __decorate([ | ||
__param(2, Optional()), | ||
__param(4, Optional()), __param(4, Inject(SAPPHIRE_DB_STARTUP_TOKEN)), | ||
__metadata("design:paramtypes", [Object, SapphireStorage, | ||
SapphireClassTransformer, | ||
NgZone]) | ||
NgZone, String]) | ||
], SapphireDbService); | ||
@@ -35,2 +38,2 @@ return SapphireDbService; | ||
export { SapphireDbService }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2FwcGhpcmUtZGIuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25nLXNhcHBoaXJlZGIvIiwic291cmNlcyI6WyJsaWIvc2FwcGhpcmUtZGIuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsT0FBTyxFQUFDLE1BQU0sRUFBRSxVQUFVLEVBQUUsY0FBYyxFQUFFLE1BQU0sRUFBRSxRQUFRLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDbkYsT0FBTyxFQUFDLGlCQUFpQixFQUFFLFVBQVUsRUFBRSx3QkFBd0IsRUFBRSxlQUFlLEVBQUMsTUFBTSxZQUFZLENBQUM7QUFFcEcsTUFBTSxDQUFDLElBQU0sbUJBQW1CLEdBQUcsSUFBSSxjQUFjLENBQW9CLHFCQUFxQixDQUFDLENBQUM7QUFHaEc7SUFBdUMscUNBQVU7SUFDL0MsMkJBQXlDLE9BQTBCLEVBQzNDLE9BQXdCLEVBQ3hCLGdCQUEwQyxFQUM5QyxNQUFjO1FBSGxDLFlBSUUsa0JBQU0sT0FBTyxFQUFFLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxVQUFDLFdBQXVCO1lBQ2hFLEt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7XHJcbiAgICAgIHRoaXMubmdab25lLnJ1bihleGVjdXRlQ29kZSk7XHJcbiAgICB9LCBzdGFydHVwVG9rZW4pO1xyXG4gIH1cclxufVxyXG4iXX0= |
@@ -6,7 +6,8 @@ import { __decorate, __param, __metadata } from 'tslib'; | ||
const SAPPHIRE_DB_OPTIONS = new InjectionToken('sapphire-db.options'); | ||
const SAPPHIRE_DB_STARTUP_TOKEN = new InjectionToken('sapphire-db.startup-token'); | ||
let SapphireDbService = class SapphireDbService extends SapphireDb { | ||
constructor(options, storage, classTransformer, ngZone) { | ||
constructor(options, storage, classTransformer, ngZone, startupToken) { | ||
super(options, storage, classTransformer, (executeCode) => { | ||
this.ngZone.run(executeCode); | ||
}); | ||
}, startupToken); | ||
this.ngZone = ngZone; | ||
@@ -19,3 +20,4 @@ } | ||
{ type: SapphireClassTransformer, decorators: [{ type: Optional }] }, | ||
{ type: NgZone } | ||
{ type: NgZone }, | ||
{ type: String, decorators: [{ type: Optional }, { type: Inject, args: [SAPPHIRE_DB_STARTUP_TOKEN,] }] } | ||
]; | ||
@@ -27,5 +29,6 @@ SapphireDbService = __decorate([ | ||
__param(2, Optional()), | ||
__param(4, Optional()), __param(4, Inject(SAPPHIRE_DB_STARTUP_TOKEN)), | ||
__metadata("design:paramtypes", [Object, SapphireStorage, | ||
SapphireClassTransformer, | ||
NgZone]) | ||
NgZone, String]) | ||
], SapphireDbService); | ||
@@ -54,3 +57,3 @@ | ||
export { SAPPHIRE_DB_OPTIONS, SapphireDbModule, SapphireDbService }; | ||
export { SAPPHIRE_DB_OPTIONS, SAPPHIRE_DB_STARTUP_TOKEN, SapphireDbModule, SapphireDbService }; | ||
//# sourceMappingURL=ng-sapphiredb.js.map |
@@ -6,8 +6,9 @@ import { __extends, __decorate, __param, __metadata } from 'tslib'; | ||
var SAPPHIRE_DB_OPTIONS = new InjectionToken('sapphire-db.options'); | ||
var SAPPHIRE_DB_STARTUP_TOKEN = new InjectionToken('sapphire-db.startup-token'); | ||
var SapphireDbService = /** @class */ (function (_super) { | ||
__extends(SapphireDbService, _super); | ||
function SapphireDbService(options, storage, classTransformer, ngZone) { | ||
function SapphireDbService(options, storage, classTransformer, ngZone, startupToken) { | ||
var _this = _super.call(this, options, storage, classTransformer, function (executeCode) { | ||
_this.ngZone.run(executeCode); | ||
}) || this; | ||
}, startupToken) || this; | ||
_this.ngZone = ngZone; | ||
@@ -20,3 +21,4 @@ return _this; | ||
{ type: SapphireClassTransformer, decorators: [{ type: Optional }] }, | ||
{ type: NgZone } | ||
{ type: NgZone }, | ||
{ type: String, decorators: [{ type: Optional }, { type: Inject, args: [SAPPHIRE_DB_STARTUP_TOKEN,] }] } | ||
]; }; | ||
@@ -28,5 +30,6 @@ SapphireDbService = __decorate([ | ||
__param(2, Optional()), | ||
__param(4, Optional()), __param(4, Inject(SAPPHIRE_DB_STARTUP_TOKEN)), | ||
__metadata("design:paramtypes", [Object, SapphireStorage, | ||
SapphireClassTransformer, | ||
NgZone]) | ||
NgZone, String]) | ||
], SapphireDbService); | ||
@@ -60,3 +63,3 @@ return SapphireDbService; | ||
export { SAPPHIRE_DB_OPTIONS, SapphireDbModule, SapphireDbService }; | ||
export { SAPPHIRE_DB_OPTIONS, SAPPHIRE_DB_STARTUP_TOKEN, SapphireDbModule, SapphireDbService }; | ||
//# sourceMappingURL=ng-sapphiredb.js.map |
import { InjectionToken, NgZone } from '@angular/core'; | ||
import { SapphireDbOptions, SapphireDb, SapphireClassTransformer, SapphireStorage } from 'sapphiredb'; | ||
export declare const SAPPHIRE_DB_OPTIONS: InjectionToken<SapphireDbOptions>; | ||
export declare const SAPPHIRE_DB_STARTUP_TOKEN: InjectionToken<string>; | ||
export declare class SapphireDbService extends SapphireDb { | ||
private ngZone; | ||
constructor(options: SapphireDbOptions, storage: SapphireStorage, classTransformer: SapphireClassTransformer, ngZone: NgZone); | ||
constructor(options: SapphireDbOptions, storage: SapphireStorage, classTransformer: SapphireClassTransformer, ngZone: NgZone, startupToken: string); | ||
} |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"SAPPHIRE_DB_OPTIONS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":39},"arguments":["sapphire-db.options"]},"SapphireDbService":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"sapphiredb","name":"SapphireDb","line":6,"character":39},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":5,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":7,"character":15},"arguments":[{"__symbolic":"reference","name":"SAPPHIRE_DB_OPTIONS"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":8,"character":15}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":9,"character":15}}],null],"parameters":[{"__symbolic":"reference","module":"sapphiredb","name":"SapphireDbOptions","line":7,"character":52},{"__symbolic":"reference","module":"sapphiredb","name":"SapphireStorage","line":8,"character":35},{"__symbolic":"reference","module":"sapphiredb","name":"SapphireClassTransformer","line":9,"character":44},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":10,"character":30}]}]}},"SapphireDbModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":3,"character":1},"arguments":[{"imports":[],"declarations":[],"providers":[{"__symbolic":"reference","name":"SapphireDbService"},{"provide":{"__symbolic":"reference","name":"SAPPHIRE_DB_OPTIONS"},"useValue":null}]}]}],"members":{}}},"origins":{"SAPPHIRE_DB_OPTIONS":"./lib/sapphire-db.service","SapphireDbService":"./lib/sapphire-db.service","SapphireDbModule":"./lib/sapphire-db.module"},"importAs":"ng-sapphiredb"} | ||
{"__symbolic":"module","version":4,"metadata":{"SAPPHIRE_DB_OPTIONS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":39},"arguments":["sapphire-db.options"]},"SAPPHIRE_DB_STARTUP_TOKEN":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":4,"character":45},"arguments":["sapphire-db.startup-token"]},"SapphireDbService":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"sapphiredb","name":"SapphireDb","line":7,"character":39},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":6,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":8,"character":15},"arguments":[{"__symbolic":"reference","name":"SAPPHIRE_DB_OPTIONS"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":9,"character":15}}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":10,"character":15}}],null,[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":12,"character":15}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":12,"character":27},"arguments":[{"__symbolic":"reference","name":"SAPPHIRE_DB_STARTUP_TOKEN"}]}]],"parameters":[{"__symbolic":"reference","module":"sapphiredb","name":"SapphireDbOptions","line":8,"character":52},{"__symbolic":"reference","module":"sapphiredb","name":"SapphireStorage","line":9,"character":35},{"__symbolic":"reference","module":"sapphiredb","name":"SapphireClassTransformer","line":10,"character":44},{"__symbolic":"reference","module":"@angular/core","name":"NgZone","line":11,"character":30},{"__symbolic":"reference","name":"string"}]}]}},"SapphireDbModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":3,"character":1},"arguments":[{"imports":[],"declarations":[],"providers":[{"__symbolic":"reference","name":"SapphireDbService"},{"provide":{"__symbolic":"reference","name":"SAPPHIRE_DB_OPTIONS"},"useValue":null}]}]}],"members":{}}},"origins":{"SAPPHIRE_DB_OPTIONS":"./lib/sapphire-db.service","SAPPHIRE_DB_STARTUP_TOKEN":"./lib/sapphire-db.service","SapphireDbService":"./lib/sapphire-db.service","SapphireDbModule":"./lib/sapphire-db.module"},"importAs":"ng-sapphiredb"} |
{ | ||
"name": "ng-sapphiredb", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "Angular client implementation for SapphireDb", | ||
@@ -5,0 +5,0 @@ "peerDependencies": { |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
89553
491