@ng-web-apis/common
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -50,2 +50,29 @@ (function (global, factory) { | ||
/** @type {?} */ | ||
var CSS = new core.InjectionToken('An abstraction over window.CSS object', { | ||
factory: function () { return core.inject(WINDOW).CSS; }, | ||
}); | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** @type {?} */ | ||
var LOCAL_STORAGE = new core.InjectionToken('An abstraction over window.localStorage object', { | ||
factory: function () { return core.inject(WINDOW).localStorage; }, | ||
}); | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** @type {?} */ | ||
var LOCATION = new core.InjectionToken('An abstraction over window.location object', { | ||
factory: function () { return core.inject(WINDOW).location; }, | ||
}); | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** @type {?} */ | ||
var NAVIGATOR = new core.InjectionToken('An abstraction over window.navigator object', { | ||
@@ -59,2 +86,6 @@ factory: function () { return core.inject(WINDOW).navigator; }, | ||
*/ | ||
/** @type {?} */ | ||
var USER_AGENT = new core.InjectionToken('An abstraction over window.navigator.userAgent object', { | ||
factory: function () { return core.inject(NAVIGATOR).userAgent; }, | ||
}); | ||
@@ -66,5 +97,14 @@ /** | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
exports.ANIMATION_FRAME = ANIMATION_FRAME; | ||
exports.CSS = CSS; | ||
exports.LOCAL_STORAGE = LOCAL_STORAGE; | ||
exports.LOCATION = LOCATION; | ||
exports.NAVIGATOR = NAVIGATOR; | ||
exports.PERFORMANCE = PERFORMANCE; | ||
exports.USER_AGENT = USER_AGENT; | ||
exports.WINDOW = WINDOW; | ||
@@ -71,0 +111,0 @@ |
@@ -1,2 +0,2 @@ | ||
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("rxjs"),require("rxjs/operators"),require("@angular/common"),require("@angular/core")):"function"==typeof define&&define.amd?define("@ng-web-apis/common",["exports","rxjs","rxjs/operators","@angular/common","@angular/core"],n):n((e["ng-web-apis"]=e["ng-web-apis"]||{},e["ng-web-apis"].common={}),e.rxjs,e.rxjs.operators,e.ng.common,e.ng.core)}(this,function(e,n,o,r,t){"use strict";var a=new t.InjectionToken("An abstraction over global window object",{factory:function(){var e=t.inject(r.DOCUMENT).defaultView;if(!e)throw new Error("Window is not available");return e}}),i=new t.InjectionToken("An abstraction over window.performance object",{factory:function(){return t.inject(a).performance}}),c=new t.InjectionToken("Shared Observable based on `window.requestAnimationFrame`",{factory:function(){var e=t.inject(i);return n.of(0,n.animationFrameScheduler).pipe(o.repeat(),o.map(function(){return e.now()}),o.share())}}),u=new t.InjectionToken("An abstraction over window.navigator object",{factory:function(){return t.inject(a).navigator}});e.ANIMATION_FRAME=c,e.NAVIGATOR=u,e.PERFORMANCE=i,e.WINDOW=a,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("rxjs"),require("rxjs/operators"),require("@angular/common"),require("@angular/core")):"function"==typeof define&&define.amd?define("@ng-web-apis/common",["exports","rxjs","rxjs/operators","@angular/common","@angular/core"],e):e((n["ng-web-apis"]=n["ng-web-apis"]||{},n["ng-web-apis"].common={}),n.rxjs,n.rxjs.operators,n.ng.common,n.ng.core)}(this,function(n,e,o,r,t){"use strict";var i=new t.InjectionToken("An abstraction over global window object",{factory:function(){var n=t.inject(r.DOCUMENT).defaultView;if(!n)throw new Error("Window is not available");return n}}),a=new t.InjectionToken("An abstraction over window.performance object",{factory:function(){return t.inject(i).performance}}),c=new t.InjectionToken("Shared Observable based on `window.requestAnimationFrame`",{factory:function(){var n=t.inject(a);return e.of(0,e.animationFrameScheduler).pipe(o.repeat(),o.map(function(){return n.now()}),o.share())}}),u=new t.InjectionToken("An abstraction over window.CSS object",{factory:function(){return t.inject(i).CSS}}),s=new t.InjectionToken("An abstraction over window.localStorage object",{factory:function(){return t.inject(i).localStorage}}),f=new t.InjectionToken("An abstraction over window.location object",{factory:function(){return t.inject(i).location}}),w=new t.InjectionToken("An abstraction over window.navigator object",{factory:function(){return t.inject(i).navigator}}),j=new t.InjectionToken("An abstraction over window.navigator.userAgent object",{factory:function(){return t.inject(w).userAgent}});n.ANIMATION_FRAME=c,n.CSS=u,n.LOCAL_STORAGE=s,n.LOCATION=f,n.NAVIGATOR=w,n.PERFORMANCE=a,n.USER_AGENT=j,n.WINDOW=i,Object.defineProperty(n,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=ng-web-apis-common.umd.min.js.map |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
export { ANIMATION_FRAME, NAVIGATOR, PERFORMANCE, WINDOW } from './public-api'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmctd2ViLWFwaXMtY29tbW9uLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5nLXdlYi1hcGlzL2NvbW1vbi8iLCJzb3VyY2VzIjpbIm5nLXdlYi1hcGlzLWNvbW1vbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsZ0VBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19 | ||
export { ANIMATION_FRAME, CSS, LOCAL_STORAGE, LOCATION, NAVIGATOR, PERFORMANCE, USER_AGENT, WINDOW } from './public-api'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmctd2ViLWFwaXMtY29tbW9uLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5nLXdlYi1hcGlzL2NvbW1vbi8iLCJzb3VyY2VzIjpbIm5nLXdlYi1hcGlzLWNvbW1vbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsMEdBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19 |
@@ -9,5 +9,9 @@ /** | ||
export { ANIMATION_FRAME } from './tokens/animation-frame'; | ||
export { CSS } from './tokens/css'; | ||
export { LOCAL_STORAGE } from './tokens/local-storage'; | ||
export { LOCATION } from './tokens/location'; | ||
export { NAVIGATOR } from './tokens/navigator'; | ||
export { PERFORMANCE } from './tokens/performance'; | ||
export { USER_AGENT } from './tokens/user-agent'; | ||
export { WINDOW } from './tokens/window'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZy13ZWItYXBpcy9jb21tb24vIiwic291cmNlcyI6WyJwdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFHQSxnQ0FBYywwQkFBMEIsQ0FBQztBQUN6QywwQkFBYyxvQkFBb0IsQ0FBQztBQUNuQyw0QkFBYyxzQkFBc0IsQ0FBQztBQUNyQyx1QkFBYyxpQkFBaUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxyXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgQG5nLXdlYi1hcGlzL2NvbW1vblxyXG4gKi9cclxuZXhwb3J0ICogZnJvbSAnLi90b2tlbnMvYW5pbWF0aW9uLWZyYW1lJztcclxuZXhwb3J0ICogZnJvbSAnLi90b2tlbnMvbmF2aWdhdG9yJztcclxuZXhwb3J0ICogZnJvbSAnLi90b2tlbnMvcGVyZm9ybWFuY2UnO1xyXG5leHBvcnQgKiBmcm9tICcuL3Rva2Vucy93aW5kb3cnO1xyXG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZy13ZWItYXBpcy9jb21tb24vIiwic291cmNlcyI6WyJwdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFHQSxnQ0FBYywwQkFBMEIsQ0FBQztBQUN6QyxvQkFBYyxjQUFjLENBQUM7QUFDN0IsOEJBQWMsd0JBQXdCLENBQUM7QUFDdkMseUJBQWMsbUJBQW1CLENBQUM7QUFDbEMsMEJBQWMsb0JBQW9CLENBQUM7QUFDbkMsNEJBQWMsc0JBQXNCLENBQUM7QUFDckMsMkJBQWMscUJBQXFCLENBQUM7QUFDcEMsdUJBQWMsaUJBQWlCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcclxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIEBuZy13ZWItYXBpcy9jb21tb25cclxuICovXHJcbmV4cG9ydCAqIGZyb20gJy4vdG9rZW5zL2FuaW1hdGlvbi1mcmFtZSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vdG9rZW5zL2Nzcyc7XHJcbmV4cG9ydCAqIGZyb20gJy4vdG9rZW5zL2xvY2FsLXN0b3JhZ2UnO1xyXG5leHBvcnQgKiBmcm9tICcuL3Rva2Vucy9sb2NhdGlvbic7XHJcbmV4cG9ydCAqIGZyb20gJy4vdG9rZW5zL25hdmlnYXRvcic7XHJcbmV4cG9ydCAqIGZyb20gJy4vdG9rZW5zL3BlcmZvcm1hbmNlJztcclxuZXhwb3J0ICogZnJvbSAnLi90b2tlbnMvdXNlci1hZ2VudCc7XHJcbmV4cG9ydCAqIGZyb20gJy4vdG9rZW5zL3dpbmRvdyc7XHJcbiJdfQ== |
@@ -8,3 +8,3 @@ /** | ||
*/ | ||
export { ANIMATION_FRAME, NAVIGATOR, PERFORMANCE, WINDOW } from './public-api'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmctd2ViLWFwaXMtY29tbW9uLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5nLXdlYi1hcGlzL2NvbW1vbi8iLCJzb3VyY2VzIjpbIm5nLXdlYi1hcGlzLWNvbW1vbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsZ0VBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19 | ||
export { ANIMATION_FRAME, CSS, LOCAL_STORAGE, LOCATION, NAVIGATOR, PERFORMANCE, USER_AGENT, WINDOW } from './public-api'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmctd2ViLWFwaXMtY29tbW9uLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5nLXdlYi1hcGlzL2NvbW1vbi8iLCJzb3VyY2VzIjpbIm5nLXdlYi1hcGlzLWNvbW1vbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsMEdBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19 |
@@ -9,5 +9,9 @@ /** | ||
export { ANIMATION_FRAME } from './tokens/animation-frame'; | ||
export { CSS } from './tokens/css'; | ||
export { LOCAL_STORAGE } from './tokens/local-storage'; | ||
export { LOCATION } from './tokens/location'; | ||
export { NAVIGATOR } from './tokens/navigator'; | ||
export { PERFORMANCE } from './tokens/performance'; | ||
export { USER_AGENT } from './tokens/user-agent'; | ||
export { WINDOW } from './tokens/window'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZy13ZWItYXBpcy9jb21tb24vIiwic291cmNlcyI6WyJwdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFHQSxnQ0FBYywwQkFBMEIsQ0FBQztBQUN6QywwQkFBYyxvQkFBb0IsQ0FBQztBQUNuQyw0QkFBYyxzQkFBc0IsQ0FBQztBQUNyQyx1QkFBYyxpQkFBaUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxyXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgQG5nLXdlYi1hcGlzL2NvbW1vblxyXG4gKi9cclxuZXhwb3J0ICogZnJvbSAnLi90b2tlbnMvYW5pbWF0aW9uLWZyYW1lJztcclxuZXhwb3J0ICogZnJvbSAnLi90b2tlbnMvbmF2aWdhdG9yJztcclxuZXhwb3J0ICogZnJvbSAnLi90b2tlbnMvcGVyZm9ybWFuY2UnO1xyXG5leHBvcnQgKiBmcm9tICcuL3Rva2Vucy93aW5kb3cnO1xyXG4iXX0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZy13ZWItYXBpcy9jb21tb24vIiwic291cmNlcyI6WyJwdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFHQSxnQ0FBYywwQkFBMEIsQ0FBQztBQUN6QyxvQkFBYyxjQUFjLENBQUM7QUFDN0IsOEJBQWMsd0JBQXdCLENBQUM7QUFDdkMseUJBQWMsbUJBQW1CLENBQUM7QUFDbEMsMEJBQWMsb0JBQW9CLENBQUM7QUFDbkMsNEJBQWMsc0JBQXNCLENBQUM7QUFDckMsMkJBQWMscUJBQXFCLENBQUM7QUFDcEMsdUJBQWMsaUJBQWlCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcclxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIEBuZy13ZWItYXBpcy9jb21tb25cclxuICovXHJcbmV4cG9ydCAqIGZyb20gJy4vdG9rZW5zL2FuaW1hdGlvbi1mcmFtZSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vdG9rZW5zL2Nzcyc7XHJcbmV4cG9ydCAqIGZyb20gJy4vdG9rZW5zL2xvY2FsLXN0b3JhZ2UnO1xyXG5leHBvcnQgKiBmcm9tICcuL3Rva2Vucy9sb2NhdGlvbic7XHJcbmV4cG9ydCAqIGZyb20gJy4vdG9rZW5zL25hdmlnYXRvcic7XHJcbmV4cG9ydCAqIGZyb20gJy4vdG9rZW5zL3BlcmZvcm1hbmNlJztcclxuZXhwb3J0ICogZnJvbSAnLi90b2tlbnMvdXNlci1hZ2VudCc7XHJcbmV4cG9ydCAqIGZyb20gJy4vdG9rZW5zL3dpbmRvdyc7XHJcbiJdfQ== |
@@ -49,2 +49,29 @@ import { animationFrameScheduler, of } from 'rxjs'; | ||
/** @type {?} */ | ||
const CSS = new InjectionToken('An abstraction over window.CSS object', { | ||
factory: () => inject(WINDOW).CSS, | ||
}); | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** @type {?} */ | ||
const LOCAL_STORAGE = new InjectionToken('An abstraction over window.localStorage object', { | ||
factory: () => inject(WINDOW).localStorage, | ||
}); | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** @type {?} */ | ||
const LOCATION = new InjectionToken('An abstraction over window.location object', { | ||
factory: () => inject(WINDOW).location, | ||
}); | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** @type {?} */ | ||
const NAVIGATOR = new InjectionToken('An abstraction over window.navigator object', { | ||
@@ -58,2 +85,6 @@ factory: () => inject(WINDOW).navigator, | ||
*/ | ||
/** @type {?} */ | ||
const USER_AGENT = new InjectionToken('An abstraction over window.navigator.userAgent object', { | ||
factory: () => inject(NAVIGATOR).userAgent, | ||
}); | ||
@@ -65,4 +96,9 @@ /** | ||
export { ANIMATION_FRAME, NAVIGATOR, PERFORMANCE, WINDOW }; | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
export { ANIMATION_FRAME, CSS, LOCAL_STORAGE, LOCATION, NAVIGATOR, PERFORMANCE, USER_AGENT, WINDOW }; | ||
//# sourceMappingURL=ng-web-apis-common.js.map |
@@ -49,2 +49,29 @@ import { animationFrameScheduler, of } from 'rxjs'; | ||
/** @type {?} */ | ||
var CSS = new InjectionToken('An abstraction over window.CSS object', { | ||
factory: function () { return inject(WINDOW).CSS; }, | ||
}); | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** @type {?} */ | ||
var LOCAL_STORAGE = new InjectionToken('An abstraction over window.localStorage object', { | ||
factory: function () { return inject(WINDOW).localStorage; }, | ||
}); | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** @type {?} */ | ||
var LOCATION = new InjectionToken('An abstraction over window.location object', { | ||
factory: function () { return inject(WINDOW).location; }, | ||
}); | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
/** @type {?} */ | ||
var NAVIGATOR = new InjectionToken('An abstraction over window.navigator object', { | ||
@@ -58,2 +85,6 @@ factory: function () { return inject(WINDOW).navigator; }, | ||
*/ | ||
/** @type {?} */ | ||
var USER_AGENT = new InjectionToken('An abstraction over window.navigator.userAgent object', { | ||
factory: function () { return inject(NAVIGATOR).userAgent; }, | ||
}); | ||
@@ -65,4 +96,9 @@ /** | ||
export { ANIMATION_FRAME, NAVIGATOR, PERFORMANCE, WINDOW }; | ||
/** | ||
* @fileoverview added by tsickle | ||
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc | ||
*/ | ||
export { ANIMATION_FRAME, CSS, LOCAL_STORAGE, LOCATION, NAVIGATOR, PERFORMANCE, USER_AGENT, WINDOW }; | ||
//# sourceMappingURL=ng-web-apis-common.js.map |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"ANIMATION_FRAME":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":6,"character":35},"arguments":["Shared Observable based on `window.requestAnimationFrame`",{"__symbolic":"error","message":"Lambda not supported","line":9,"character":17,"module":"./tokens/animation-frame"}]},"NAVIGATOR":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":29},"arguments":["An abstraction over window.navigator object",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tokens/navigator"}]},"PERFORMANCE":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":31},"arguments":["An abstraction over window.performance object",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tokens/performance"}]},"WINDOW":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":26},"arguments":["An abstraction over global window object",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tokens/window"}]}},"origins":{"ANIMATION_FRAME":"./tokens/animation-frame","NAVIGATOR":"./tokens/navigator","PERFORMANCE":"./tokens/performance","WINDOW":"./tokens/window"},"importAs":"@ng-web-apis/common"} | ||
{"__symbolic":"module","version":4,"metadata":{"ANIMATION_FRAME":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":6,"character":35},"arguments":["Shared Observable based on `window.requestAnimationFrame`",{"__symbolic":"error","message":"Lambda not supported","line":9,"character":17,"module":"./tokens/animation-frame"}]},"CSS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":9,"character":23},"arguments":["An abstraction over window.CSS object",{"__symbolic":"error","message":"Lambda not supported","line":10,"character":13,"module":"./tokens/css"}]},"LOCAL_STORAGE":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":33},"arguments":["An abstraction over window.localStorage object",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tokens/local-storage"}]},"LOCATION":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":28},"arguments":["An abstraction over window.location object",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tokens/location"}]},"NAVIGATOR":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":29},"arguments":["An abstraction over window.navigator object",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tokens/navigator"}]},"PERFORMANCE":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":31},"arguments":["An abstraction over window.performance object",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tokens/performance"}]},"USER_AGENT":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":30},"arguments":["An abstraction over window.navigator.userAgent object",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tokens/user-agent"}]},"WINDOW":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":26},"arguments":["An abstraction over global window object",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tokens/window"}]}},"origins":{"ANIMATION_FRAME":"./tokens/animation-frame","CSS":"./tokens/css","LOCAL_STORAGE":"./tokens/local-storage","LOCATION":"./tokens/location","NAVIGATOR":"./tokens/navigator","PERFORMANCE":"./tokens/performance","USER_AGENT":"./tokens/user-agent","WINDOW":"./tokens/window"},"importAs":"@ng-web-apis/common"} |
{ | ||
"name": "@ng-web-apis/common", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"peerDependencies": { | ||
@@ -5,0 +5,0 @@ "@angular/common": ">=6.0.0", |
@@ -5,4 +5,8 @@ /** | ||
export * from './tokens/animation-frame'; | ||
export * from './tokens/css'; | ||
export * from './tokens/local-storage'; | ||
export * from './tokens/location'; | ||
export * from './tokens/navigator'; | ||
export * from './tokens/performance'; | ||
export * from './tokens/user-agent'; | ||
export * from './tokens/window'; |
@@ -14,4 +14,7 @@ # Common utils for Web APIs | ||
- `NAVIGATOR` — provides access to `window.navigator` object | ||
- `USER_AGENT` — provides access to `window.navigator.userAgent` string | ||
- `PERFORMANCE` — provides access to `window.performance` object | ||
- `ANIMATION_FRAME` — shared Observable based on `window.requestAnimationFrame` | ||
- `CSS` — provides access to `window.CSS` object | ||
- `LOCATION` — provides access to `window.location` object | ||
- `LOCAL_STORAGE` — provides access to `window.localStorage` object |
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
74543
43
550
20