New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ng-web-apis/common

Package Overview
Dependencies
Maintainers
4
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ng-web-apis/common - npm Package Compare versions

Comparing version 1.12.1 to 1.13.0

esm2015/tokens/media-devices.js

10

bundles/ng-web-apis-common.umd.js

@@ -121,2 +121,11 @@ (function (global, factory) {

/** @type {?} */
var MEDIA_DEVICES = new core.InjectionToken('An abstraction over window.navigator.mediaDevices object', {
factory: function () { return core.inject(NAVIGATOR).mediaDevices; },
});
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var NETWORK_INFORMATION = new core.InjectionToken('An abstraction over window.navigator.connection object', {

@@ -206,2 +215,3 @@ // @ts-ignore

exports.LOCATION = LOCATION;
exports.MEDIA_DEVICES = MEDIA_DEVICES;
exports.NAVIGATOR = NAVIGATOR;

@@ -208,0 +218,0 @@ exports.NETWORK_INFORMATION = NETWORK_INFORMATION;

2

bundles/ng-web-apis-common.umd.min.js

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

!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/common"),require("rxjs"),require("rxjs/operators"),require("@angular/core")):"function"==typeof define&&define.amd?define("@ng-web-apis/common",["exports","@angular/common","rxjs","rxjs/operators","@angular/core"],e):e((n["ng-web-apis"]=n["ng-web-apis"]||{},n["ng-web-apis"].common={}),n.ng.common,n.rxjs,n.rxjs.operators,n.ng.core)}(this,function(n,e,o,t,c){"use strict";var a=new c.InjectionToken("An abstraction over global window object",{factory:function(){var n=c.inject(e.DOCUMENT).defaultView;if(!n)throw new Error("Window is not available");return n}}),r=new c.InjectionToken("Shared Observable based on `window.requestAnimationFrame`",{factory:function(){var n=c.inject(a),r=n.requestAnimationFrame,i=n.cancelAnimationFrame;return new o.Observable(function(e){var o=NaN,t=function(n){e.next(n),o=r(t)};return o=r(t),function(){i(o)}}).pipe(t.share())}}),i=new c.InjectionToken("An abstraction over window.caches object",{factory:function(){return c.inject(a).caches}}),s=new c.InjectionToken("An abstraction over window.crypto object",{factory:function(){return c.inject(a).crypto}}),u=new c.InjectionToken("An abstraction over window.CSS object",{factory:function(){return c.inject(a).CSS||{escape:function(n){return n},supports:function(){return!1}}}}),f=new c.InjectionToken("An abstraction over window.history object",{factory:function(){return c.inject(a).history}}),w=new c.InjectionToken("An abstraction over window.localStorage object",{factory:function(){return c.inject(a).localStorage}}),j=new c.InjectionToken("An abstraction over window.location object",{factory:function(){return c.inject(a).location}}),b=new c.InjectionToken("An abstraction over window.navigator object",{factory:function(){return c.inject(a).navigator}}),d=new c.InjectionToken("An abstraction over window.navigator.connection object",{factory:function(){return c.inject(b).connection||null}}),v=new c.InjectionToken("Shared Observable based on `document visibility changed`",{factory:function(){var n=c.inject(e.DOCUMENT);return o.fromEvent(n,"visibilitychange").pipe(t.startWith(0),t.map(function(){return"hidden"!==n.visibilityState}),t.distinctUntilChanged(),t.share())}}),A=new c.InjectionToken("An abstraction over window.performance object",{factory:function(){return c.inject(a).performance}}),I=new c.InjectionToken("An abstraction over window.sessionStorage object",{factory:function(){return c.inject(a).sessionStorage}}),l=new c.InjectionToken("An abstraction over SpeechRecognition class",{factory:function(){var n=c.inject(a);return n.speechRecognition||n.webkitSpeechRecognition||null}}),p=new c.InjectionToken("An abstraction over window.speechSynthesis object",{factory:function(){return c.inject(a).speechSynthesis}}),S=new c.InjectionToken("An abstraction over window.navigator.userAgent object",{factory:function(){return c.inject(b).userAgent}});n.ANIMATION_FRAME=r,n.CACHES=i,n.CRYPTO=s,n.CSS=u,n.HISTORY=f,n.LOCAL_STORAGE=w,n.LOCATION=j,n.NAVIGATOR=b,n.NETWORK_INFORMATION=d,n.PAGE_VISIBILITY=v,n.PERFORMANCE=A,n.SESSION_STORAGE=I,n.SPEECH_RECOGNITION=l,n.SPEECH_SYNTHESIS=p,n.USER_AGENT=S,n.WINDOW=a,Object.defineProperty(n,"__esModule",{value:!0})});
!function(n,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/common"),require("rxjs"),require("rxjs/operators"),require("@angular/core")):"function"==typeof define&&define.amd?define("@ng-web-apis/common",["exports","@angular/common","rxjs","rxjs/operators","@angular/core"],e):e((n["ng-web-apis"]=n["ng-web-apis"]||{},n["ng-web-apis"].common={}),n.ng.common,n.rxjs,n.rxjs.operators,n.ng.core)}(this,function(n,e,o,t,c){"use strict";var a=new c.InjectionToken("An abstraction over global window object",{factory:function(){var n=c.inject(e.DOCUMENT).defaultView;if(!n)throw new Error("Window is not available");return n}}),r=new c.InjectionToken("Shared Observable based on `window.requestAnimationFrame`",{factory:function(){var n=c.inject(a),r=n.requestAnimationFrame,i=n.cancelAnimationFrame;return new o.Observable(function(e){var o=NaN,t=function(n){e.next(n),o=r(t)},o=r(t);return function(){i(o)}}).pipe(t.share())}}),i=new c.InjectionToken("An abstraction over window.caches object",{factory:function(){return c.inject(a).caches}}),s=new c.InjectionToken("An abstraction over window.crypto object",{factory:function(){return c.inject(a).crypto}}),w=new c.InjectionToken("An abstraction over window.CSS object",{factory:function(){return c.inject(a).CSS||{escape:function(n){return n},supports:function(){return!1}}}}),f=new c.InjectionToken("An abstraction over window.history object",{factory:function(){return c.inject(a).history}}),j=new c.InjectionToken("An abstraction over window.localStorage object",{factory:function(){return c.inject(a).localStorage}}),b=new c.InjectionToken("An abstraction over window.location object",{factory:function(){return c.inject(a).location}}),u=new c.InjectionToken("An abstraction over window.navigator object",{factory:function(){return c.inject(a).navigator}}),d=new c.InjectionToken("An abstraction over window.navigator.mediaDevices object",{factory:function(){return c.inject(u).mediaDevices}}),v=new c.InjectionToken("An abstraction over window.navigator.connection object",{factory:function(){return c.inject(u).connection||null}}),A=new c.InjectionToken("Shared Observable based on `document visibility changed`",{factory:function(){var n=c.inject(e.DOCUMENT);return o.fromEvent(n,"visibilitychange").pipe(t.startWith(0),t.map(function(){return"hidden"!==n.visibilityState}),t.distinctUntilChanged(),t.share())}}),I=new c.InjectionToken("An abstraction over window.performance object",{factory:function(){return c.inject(a).performance}}),S=new c.InjectionToken("An abstraction over window.sessionStorage object",{factory:function(){return c.inject(a).sessionStorage}}),T=new c.InjectionToken("An abstraction over SpeechRecognition class",{factory:function(){var n=c.inject(a);return n.speechRecognition||n.webkitSpeechRecognition||null}}),l=new c.InjectionToken("An abstraction over window.speechSynthesis object",{factory:function(){return c.inject(a).speechSynthesis}}),p=new c.InjectionToken("An abstraction over window.navigator.userAgent object",{factory:function(){return c.inject(u).userAgent}});n.ANIMATION_FRAME=r,n.CACHES=i,n.CRYPTO=s,n.CSS=w,n.HISTORY=f,n.LOCAL_STORAGE=j,n.LOCATION=b,n.MEDIA_DEVICES=d,n.NAVIGATOR=u,n.NETWORK_INFORMATION=v,n.PAGE_VISIBILITY=A,n.PERFORMANCE=I,n.SESSION_STORAGE=S,n.SPEECH_RECOGNITION=T,n.SPEECH_SYNTHESIS=l,n.USER_AGENT=p,n.WINDOW=a,Object.defineProperty(n,"__esModule",{value:!0})});
//# sourceMappingURL=ng-web-apis-common.umd.min.js.map

@@ -8,3 +8,3 @@ /**

*/
export { ANIMATION_FRAME, CACHES, CRYPTO, CSS, HISTORY, LOCAL_STORAGE, LOCATION, NAVIGATOR, NETWORK_INFORMATION, PAGE_VISIBILITY, PERFORMANCE, SESSION_STORAGE, SPEECH_RECOGNITION, SPEECH_SYNTHESIS, USER_AGENT, WINDOW } from './public-api';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmctd2ViLWFwaXMtY29tbW9uLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5nLXdlYi1hcGlzL2NvbW1vbi8iLCJzb3VyY2VzIjpbIm5nLXdlYi1hcGlzLWNvbW1vbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsZ09BQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19
export { ANIMATION_FRAME, CACHES, CRYPTO, CSS, HISTORY, LOCAL_STORAGE, LOCATION, MEDIA_DEVICES, NAVIGATOR, NETWORK_INFORMATION, PAGE_VISIBILITY, PERFORMANCE, SESSION_STORAGE, SPEECH_RECOGNITION, SPEECH_SYNTHESIS, USER_AGENT, WINDOW } from './public-api';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmctd2ViLWFwaXMtY29tbW9uLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5nLXdlYi1hcGlzL2NvbW1vbi8iLCJzb3VyY2VzIjpbIm5nLXdlYi1hcGlzLWNvbW1vbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsK09BQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19

@@ -15,2 +15,3 @@ /**

export { LOCATION } from './tokens/location';
export { MEDIA_DEVICES } from './tokens/media-devices';
export { NAVIGATOR } from './tokens/navigator';

@@ -25,2 +26,2 @@ export { NETWORK_INFORMATION } from './tokens/network-information';

export { WINDOW } from './tokens/window';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZy13ZWItYXBpcy9jb21tb24vIiwic291cmNlcyI6WyJwdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs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YWdlbnQnO1xyXG5leHBvcnQgKiBmcm9tICcuL3Rva2Vucy93aW5kb3cnO1xyXG4iXX0=

@@ -8,3 +8,3 @@ /**

*/
export { ANIMATION_FRAME, CACHES, CRYPTO, CSS, HISTORY, LOCAL_STORAGE, LOCATION, NAVIGATOR, NETWORK_INFORMATION, PAGE_VISIBILITY, PERFORMANCE, SESSION_STORAGE, SPEECH_RECOGNITION, SPEECH_SYNTHESIS, USER_AGENT, WINDOW } from './public-api';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmctd2ViLWFwaXMtY29tbW9uLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5nLXdlYi1hcGlzL2NvbW1vbi8iLCJzb3VyY2VzIjpbIm5nLXdlYi1hcGlzLWNvbW1vbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsZ09BQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19
export { ANIMATION_FRAME, CACHES, CRYPTO, CSS, HISTORY, LOCAL_STORAGE, LOCATION, MEDIA_DEVICES, NAVIGATOR, NETWORK_INFORMATION, PAGE_VISIBILITY, PERFORMANCE, SESSION_STORAGE, SPEECH_RECOGNITION, SPEECH_SYNTHESIS, USER_AGENT, WINDOW } from './public-api';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmctd2ViLWFwaXMtY29tbW9uLmpzIiwic291cmNlUm9vdCI6Im5nOi8vQG5nLXdlYi1hcGlzL2NvbW1vbi8iLCJzb3VyY2VzIjpbIm5nLXdlYi1hcGlzLWNvbW1vbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsK09BQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19

@@ -15,2 +15,3 @@ /**

export { LOCATION } from './tokens/location';
export { MEDIA_DEVICES } from './tokens/media-devices';
export { NAVIGATOR } from './tokens/navigator';

@@ -25,2 +26,2 @@ export { NETWORK_INFORMATION } from './tokens/network-information';

export { WINDOW } from './tokens/window';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZy13ZWItYXBpcy9jb21tb24vIiwic291cmNlcyI6WyJwdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFHQSxnQ0FBYywwQkFBMEIsQ0FBQztBQUN6Qyx1QkFBYyxpQkFBaUIsQ0FBQztBQUNoQyx1QkFBYyxpQkFBaUIsQ0FBQztBQUNoQyxvQkFBYyxjQUFjLENBQUM7QUFDN0Isd0JBQWMsa0JBQWtCLENBQUM7QUFDakMsOEJBQWMsd0JBQXdCLENBQUM7QUFDdkMseUJBQWMsbUJBQW1CLENBQUM7QUFDbEMsMEJBQWMsb0JBQW9CLENBQUM7QUFDbkMsb0NBQWMsOEJBQThCLENBQUM7QUFDN0MsZ0NBQWMsMEJBQTBCLENBQUM7QUFDekMsNEJBQWMsc0JBQXNCLENBQUM7QUFDckMsZ0NBQWMsMEJBQTBCLENBQUM7QUFDekMsbUNBQWMsNkJBQTZCLENBQUM7QUFDNUMsaUNBQWMsMkJBQTJCLENBQUM7QUFDMUMsMkJBQWMscUJBQXFCLENBQUM7QUFDcEMsdUJBQWMsaUJBQWlCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcclxuICogUHVibGljIEFQSSBT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nQgKiBmcm9tICcuL3Rva2Vucy9tZWRpYS1kZXZpY2VzJztcclxuZXhwb3J0ICogZnJvbSAnLi90b2tlbnMvbmF2aWdhdG9yJztcclxuZXhwb3J0ICogZnJvbSAnLi90b2tlbnMvbmV0d29yay1pbmZvcm1hdGlvbic7XHJcbmV4cG9ydCAqIGZyb20gJy4vdG9rZW5zL3BhZ2UtdmlzaWJpbGl0eSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vdG9rZW5zL3BlcmZvcm1hbmNlJztcclxuZXhwb3J0ICogZnJvbSAnLi90b2tlbnMvc2Vzc2lvbi1zdG9yYWdlJztcclxuZXhwb3J0ICogZnJvbSAnLi90b2tlbnMvc3BlZWNoLXJlY29nbml0aW9uJztcclxuZXhwb3J0ICogZnJvbSAnLi90b2tlbnMvc3BlZWNoLXN5bnRoZXNpcyc7XHJcbmV4cG9ydCAqIGZyb20gJy4vdG9rZW5zL3VzZXItYWdlbnQnO1xyXG5leHBvcnQgKiBmcm9tICcuL3Rva2Vucy93aW5kb3cnO1xyXG4iXX0=

@@ -118,2 +118,11 @@ import { DOCUMENT } from '@angular/common';

/** @type {?} */
const MEDIA_DEVICES = new InjectionToken('An abstraction over window.navigator.mediaDevices object', {
factory: () => inject(NAVIGATOR).mediaDevices,
});
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
const NETWORK_INFORMATION = new InjectionToken('An abstraction over window.navigator.connection object', {

@@ -196,4 +205,4 @@ // @ts-ignore

export { ANIMATION_FRAME, CACHES, CRYPTO, CSS, HISTORY, LOCAL_STORAGE, LOCATION, NAVIGATOR, NETWORK_INFORMATION, PAGE_VISIBILITY, PERFORMANCE, SESSION_STORAGE, SPEECH_RECOGNITION, SPEECH_SYNTHESIS, USER_AGENT, WINDOW };
export { ANIMATION_FRAME, CACHES, CRYPTO, CSS, HISTORY, LOCAL_STORAGE, LOCATION, MEDIA_DEVICES, NAVIGATOR, NETWORK_INFORMATION, PAGE_VISIBILITY, PERFORMANCE, SESSION_STORAGE, SPEECH_RECOGNITION, SPEECH_SYNTHESIS, USER_AGENT, WINDOW };
//# sourceMappingURL=ng-web-apis-common.js.map

@@ -120,2 +120,11 @@ import { DOCUMENT } from '@angular/common';

/** @type {?} */
var MEDIA_DEVICES = new InjectionToken('An abstraction over window.navigator.mediaDevices object', {
factory: function () { return inject(NAVIGATOR).mediaDevices; },
});
/**
* @fileoverview added by tsickle
* @suppress {checkTypes,extraRequire,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
*/
/** @type {?} */
var NETWORK_INFORMATION = new InjectionToken('An abstraction over window.navigator.connection object', {

@@ -198,4 +207,4 @@ // @ts-ignore

export { ANIMATION_FRAME, CACHES, CRYPTO, CSS, HISTORY, LOCAL_STORAGE, LOCATION, NAVIGATOR, NETWORK_INFORMATION, PAGE_VISIBILITY, PERFORMANCE, SESSION_STORAGE, SPEECH_RECOGNITION, SPEECH_SYNTHESIS, USER_AGENT, WINDOW };
export { ANIMATION_FRAME, CACHES, CRYPTO, CSS, HISTORY, LOCAL_STORAGE, LOCATION, MEDIA_DEVICES, NAVIGATOR, NETWORK_INFORMATION, PAGE_VISIBILITY, PERFORMANCE, SESSION_STORAGE, SPEECH_RECOGNITION, SPEECH_SYNTHESIS, 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":5,"character":35},"arguments":["Shared Observable based on `window.requestAnimationFrame`",{"__symbolic":"error","message":"Lambda not supported","line":8,"character":17,"module":"./tokens/animation-frame"}]},"CACHES":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":26},"arguments":["An abstraction over window.caches object",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tokens/caches"}]},"CRYPTO":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":26},"arguments":["An abstraction over window.crypto object",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tokens/crypto"}]},"CSS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":12,"character":23},"arguments":["An abstraction over window.CSS object",{"__symbolic":"error","message":"Lambda not supported","line":13,"character":13,"module":"./tokens/css"}]},"HISTORY":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":27},"arguments":["An abstraction over window.history object",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tokens/history"}]},"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"}]},"NETWORK_INFORMATION":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":39},"arguments":["An abstraction over window.navigator.connection object",{"__symbolic":"error","message":"Lambda not supported","line":8,"character":13,"module":"./tokens/network-information"}]},"PAGE_VISIBILITY":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":5,"character":35},"arguments":["Shared Observable based on `document visibility changed`",{"__symbolic":"error","message":"Lambda not supported","line":8,"character":17,"module":"./tokens/page-visibility"}]},"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"}]},"SESSION_STORAGE":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":35},"arguments":["An abstraction over window.sessionStorage object",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tokens/session-storage"}]},"SPEECH_RECOGNITION":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":38},"arguments":["An abstraction over SpeechRecognition class",{"__symbolic":"error","message":"Lambda not supported","line":7,"character":13,"module":"./tokens/speech-recognition"}]},"SPEECH_SYNTHESIS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":36},"arguments":["An abstraction over window.speechSynthesis object",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tokens/speech-synthesis"}]},"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","CACHES":"./tokens/caches","CRYPTO":"./tokens/crypto","CSS":"./tokens/css","HISTORY":"./tokens/history","LOCAL_STORAGE":"./tokens/local-storage","LOCATION":"./tokens/location","NAVIGATOR":"./tokens/navigator","NETWORK_INFORMATION":"./tokens/network-information","PAGE_VISIBILITY":"./tokens/page-visibility","PERFORMANCE":"./tokens/performance","SESSION_STORAGE":"./tokens/session-storage","SPEECH_RECOGNITION":"./tokens/speech-recognition","SPEECH_SYNTHESIS":"./tokens/speech-synthesis","USER_AGENT":"./tokens/user-agent","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":5,"character":35},"arguments":["Shared Observable based on `window.requestAnimationFrame`",{"__symbolic":"error","message":"Lambda not supported","line":8,"character":17,"module":"./tokens/animation-frame"}]},"CACHES":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":26},"arguments":["An abstraction over window.caches object",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tokens/caches"}]},"CRYPTO":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":26},"arguments":["An abstraction over window.crypto object",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tokens/crypto"}]},"CSS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":12,"character":23},"arguments":["An abstraction over window.CSS object",{"__symbolic":"error","message":"Lambda not supported","line":13,"character":13,"module":"./tokens/css"}]},"HISTORY":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":27},"arguments":["An abstraction over window.history object",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tokens/history"}]},"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"}]},"MEDIA_DEVICES":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":33},"arguments":["An abstraction over window.navigator.mediaDevices object",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tokens/media-devices"}]},"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"}]},"NETWORK_INFORMATION":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":39},"arguments":["An abstraction over window.navigator.connection object",{"__symbolic":"error","message":"Lambda not supported","line":8,"character":13,"module":"./tokens/network-information"}]},"PAGE_VISIBILITY":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":5,"character":35},"arguments":["Shared Observable based on `document visibility changed`",{"__symbolic":"error","message":"Lambda not supported","line":8,"character":17,"module":"./tokens/page-visibility"}]},"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"}]},"SESSION_STORAGE":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":35},"arguments":["An abstraction over window.sessionStorage object",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tokens/session-storage"}]},"SPEECH_RECOGNITION":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":38},"arguments":["An abstraction over SpeechRecognition class",{"__symbolic":"error","message":"Lambda not supported","line":7,"character":13,"module":"./tokens/speech-recognition"}]},"SPEECH_SYNTHESIS":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":3,"character":36},"arguments":["An abstraction over window.speechSynthesis object",{"__symbolic":"error","message":"Lambda not supported","line":6,"character":17,"module":"./tokens/speech-synthesis"}]},"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","CACHES":"./tokens/caches","CRYPTO":"./tokens/crypto","CSS":"./tokens/css","HISTORY":"./tokens/history","LOCAL_STORAGE":"./tokens/local-storage","LOCATION":"./tokens/location","MEDIA_DEVICES":"./tokens/media-devices","NAVIGATOR":"./tokens/navigator","NETWORK_INFORMATION":"./tokens/network-information","PAGE_VISIBILITY":"./tokens/page-visibility","PERFORMANCE":"./tokens/performance","SESSION_STORAGE":"./tokens/session-storage","SPEECH_RECOGNITION":"./tokens/speech-recognition","SPEECH_SYNTHESIS":"./tokens/speech-synthesis","USER_AGENT":"./tokens/user-agent","WINDOW":"./tokens/window"},"importAs":"@ng-web-apis/common"}
{
"name": "@ng-web-apis/common",
"version": "1.12.1",
"version": "1.13.0",
"peerDependencies": {

@@ -26,3 +26,4 @@ "@angular/common": ">=6.0.0",

"Dmitryi Khirnyi",
"Andrew Grekov <hr@thekiba.io>"
"Andrew Grekov <hr@thekiba.io>",
"Debmallya Bhattacharya <debmallya.bhattacharya@blueface.com>"
],

@@ -29,0 +30,0 @@ "repository": "https://github.com/ng-web-apis/common",

@@ -11,2 +11,3 @@ /**

export * from './tokens/location';
export * from './tokens/media-devices';
export * from './tokens/navigator';

@@ -13,0 +14,0 @@ export * from './tokens/network-information';

@@ -18,2 +18,3 @@ Common utils for Web APIs

- `USER_AGENT` — provides access to `window.navigator.userAgent` string
- `MEDIA_DEVICES` — provides access to `window.navigator.mediaDevices` object
- `PERFORMANCE` — provides access to `window.performance` object

@@ -20,0 +21,0 @@ - `ANIMATION_FRAME` — shared `Observable` based on `window.requestAnimationFrame`

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