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

angular-observe

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-observe - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

2

dist/angular-observe.rx.js

@@ -9,3 +9,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

else
root["AngularObserve"] = factory(root["angular"], root["rx"]);
root["AngularObserve"] = factory(root["angular"], root["Rx"]);
})(this, function(__WEBPACK_EXTERNAL_MODULE_2__, __WEBPACK_EXTERNAL_MODULE_3__) {

@@ -12,0 +12,0 @@ return /******/ (function(modules) { // webpackBootstrap

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

!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("angular"),require("rx")):"function"==typeof define&&define.amd?define(["angular","rx"],r):"object"==typeof exports?exports.AngularObserve=r(require("angular"),require("rx")):e.AngularObserve=r(e.angular,e.rx)}(this,function(e,r){return function(e){function r(o){if(n[o])return n[o].exports;var t=n[o]={exports:{},id:o,loaded:!1};return e[o].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}var n={};return r.m=e,r.c=n,r.p="",r(0)}([function(e,r,n){var o=n(1),t=n(3);e.exports=n(2),o.module(e.exports).config(["asyncBindConfigProvider",function(e){e.fromPromise=t.Observable.fromPromise,e.fromValue=t.Observable.of,e.map=t.Observable.prototype.map,e.switchMap=t.Observable.prototype.flatMapLatest}])},function(r,n){r.exports=e},function(e,r,n){var o=n(1);e.exports="filearts.angularObserve";var t=o.module(e.exports,[]);t.provider("asyncBindConfig",[function(){this.fromValue=function(){throw new Error("You need to overwrite `asyncBindConfig.fromValue`.")},this.fromPromise=function(){throw new Error("You need to overwrite `asyncBindConfig.fromPromise`.")},this.map=function(){throw new Error("You need to overwrite `asyncBindConfig.map`.")},this.switchMap=function(){throw new Error("You need to overwrite `asyncBindConfig.switchMap`.")},this.$get=function(){return this}}]),t.directive("asyncBind",["$compile","$q","$rootScope","$timeout","asyncBindConfig",function(e,r,n,t,i){function u(e,r){var o=(r.asyncBind||r.source).split(/\s+as\s+/i),t=o.shift().split("."),u=o[0]||"$value",s=t.shift(),f=a(e,u);return function(e,r,o){function a(e){function r(e){var r=typeof e;return"boolean"===r||"number"===r||"string"===r}var n=!r(g[u])||!r(e);g[u]=e,d("active",n)}function p(e){d("complete")}function l(e){g.$error=e,d("error")}function d(e,n){if(n||e!==v){var o=f[e];if(m&&m.$destroy(),!o)return void r.empty();m=g.$new(),v=e,o(m,function(e){r.empty(),r.append(e)})}g.$root.$$phase||g.$digest(!0)}var m,v,h,g=n.$new(!0,e);r.empty(),e.$watch(s,function(e){function r(e){var r=e.shift(),o=e;return function(e){var t=e[r];return t?n(o,t):i.fromValue()}}function n(e,n){var o=c(n);return e.length?i.switchMap.call(o,r(e)):o}h&&(h.unsubscribe(),h=null),h=n(t,e).subscribe(a,l,p),d("loading")}),e.$on("$destroy",function(){h&&(h.unsubscribe(),h=null)})}}function c(e){return e&&"function"==typeof e.subscribe?e:e&&"function"==typeof e.then?i.fromPromise(e):i.fromValue(e)}function a(r,n){var t={},i={loading:[],active:[],error:[],complete:[]},u=[];o.forEach(r.contents(),function(e){switch(e.nodeName.toLowerCase()){case"loading":return i.loading.push(e);case"active":return i.active.push(e);case"error":return i.error.push(e);case"complete":return i.complete.push(e);default:return u.push(e)}});var c=!1;if(o.forEach(i,function(r,n){if(r.length){c=!0;var i=o.element(r).clone();t[n]=e(i)}}),!c){u.length||u.push(document.createTextNode("{{"+n+"}}"));var a=o.element(u).clone();t.active=e(a),t.complete=e(a.clone())}return t}return{restrict:"EA",scope:!0,compile:u}}])},function(e,n){e.exports=r}])});
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("angular"),require("rx")):"function"==typeof define&&define.amd?define(["angular","rx"],r):"object"==typeof exports?exports.AngularObserve=r(require("angular"),require("rx")):e.AngularObserve=r(e.angular,e.Rx)}(this,function(e,r){return function(e){function r(o){if(n[o])return n[o].exports;var t=n[o]={exports:{},id:o,loaded:!1};return e[o].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}var n={};return r.m=e,r.c=n,r.p="",r(0)}([function(e,r,n){var o=n(1),t=n(3);e.exports=n(2),o.module(e.exports).config(["asyncBindConfigProvider",function(e){e.fromPromise=t.Observable.fromPromise,e.fromValue=t.Observable.of,e.map=t.Observable.prototype.map,e.switchMap=t.Observable.prototype.flatMapLatest}])},function(r,n){r.exports=e},function(e,r,n){var o=n(1);e.exports="filearts.angularObserve";var t=o.module(e.exports,[]);t.provider("asyncBindConfig",[function(){this.fromValue=function(){throw new Error("You need to overwrite `asyncBindConfig.fromValue`.")},this.fromPromise=function(){throw new Error("You need to overwrite `asyncBindConfig.fromPromise`.")},this.map=function(){throw new Error("You need to overwrite `asyncBindConfig.map`.")},this.switchMap=function(){throw new Error("You need to overwrite `asyncBindConfig.switchMap`.")},this.$get=function(){return this}}]),t.directive("asyncBind",["$compile","$q","$rootScope","$timeout","asyncBindConfig",function(e,r,n,t,i){function u(e,r){var o=(r.asyncBind||r.source).split(/\s+as\s+/i),t=o.shift().split("."),u=o[0]||"$value",s=t.shift(),f=a(e,u);return function(e,r,o){function a(e){function r(e){var r=typeof e;return"boolean"===r||"number"===r||"string"===r}var n=!r(g[u])||!r(e);g[u]=e,d("active",n)}function p(e){d("complete")}function l(e){g.$error=e,d("error")}function d(e,n){if(n||e!==v){var o=f[e];if(m&&m.$destroy(),!o)return void r.empty();m=g.$new(),v=e,o(m,function(e){r.empty(),r.append(e)})}g.$root.$$phase||g.$digest(!0)}var m,v,h,g=n.$new(!0,e);r.empty(),e.$watch(s,function(e){function r(e){var r=e.shift(),o=e;return function(e){var t=e[r];return t?n(o,t):i.fromValue()}}function n(e,n){var o=c(n);return e.length?i.switchMap.call(o,r(e)):o}h&&(h.unsubscribe(),h=null),h=n(t,e).subscribe(a,l,p),d("loading")}),e.$on("$destroy",function(){h&&(h.unsubscribe(),h=null)})}}function c(e){return e&&"function"==typeof e.subscribe?e:e&&"function"==typeof e.then?i.fromPromise(e):i.fromValue(e)}function a(r,n){var t={},i={loading:[],active:[],error:[],complete:[]},u=[];o.forEach(r.contents(),function(e){switch(e.nodeName.toLowerCase()){case"loading":return i.loading.push(e);case"active":return i.active.push(e);case"error":return i.error.push(e);case"complete":return i.complete.push(e);default:return u.push(e)}});var c=!1;if(o.forEach(i,function(r,n){if(r.length){c=!0;var i=o.element(r).clone();t[n]=e(i)}}),!c){u.length||u.push(document.createTextNode("{{"+n+"}}"));var a=o.element(u).clone();t.active=e(a),t.complete=e(a.clone())}return t}return{restrict:"EA",scope:!0,compile:u}}])},function(e,n){e.exports=r}])});

@@ -9,3 +9,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

else
root["AngularObserve"] = factory(root["angular"], root["rx"]);
root["AngularObserve"] = factory(root["angular"], root["Rx"]);
})(this, function(__WEBPACK_EXTERNAL_MODULE_2__, __WEBPACK_EXTERNAL_MODULE_3__) {

@@ -12,0 +12,0 @@ return /******/ (function(modules) { // webpackBootstrap

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

!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("angular"),require("@reactivex/rx")):"function"==typeof define&&define.amd?define(["angular","rx"],r):"object"==typeof exports?exports.AngularObserve=r(require("angular"),require("@reactivex/rx")):e.AngularObserve=r(e.angular,e.rx)}(this,function(e,r){return function(e){function r(o){if(n[o])return n[o].exports;var t=n[o]={exports:{},id:o,loaded:!1};return e[o].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}var n={};return r.m=e,r.c=n,r.p="",r(0)}([function(e,r,n){var o=n(1),t=n(3);e.exports=n(2),o.module(e.exports).config(["asyncBindConfigProvider",function(e){e.fromPromise=t.Observable.fromPromise,e.fromValue=t.Observable.of,e.map=t.Observable.prototype.map,e.switchMap=t.Observable.prototype.switchMap}])},function(r,n){r.exports=e},function(e,r,n){var o=n(1);e.exports="filearts.angularObserve";var t=o.module(e.exports,[]);t.provider("asyncBindConfig",[function(){this.fromValue=function(){throw new Error("You need to overwrite `asyncBindConfig.fromValue`.")},this.fromPromise=function(){throw new Error("You need to overwrite `asyncBindConfig.fromPromise`.")},this.map=function(){throw new Error("You need to overwrite `asyncBindConfig.map`.")},this.switchMap=function(){throw new Error("You need to overwrite `asyncBindConfig.switchMap`.")},this.$get=function(){return this}}]),t.directive("asyncBind",["$compile","$q","$rootScope","$timeout","asyncBindConfig",function(e,r,n,t,i){function u(e,r){var o=(r.asyncBind||r.source).split(/\s+as\s+/i),t=o.shift().split("."),u=o[0]||"$value",s=t.shift(),f=a(e,u);return function(e,r,o){function a(e){function r(e){var r=typeof e;return"boolean"===r||"number"===r||"string"===r}var n=!r(g[u])||!r(e);g[u]=e,d("active",n)}function p(e){d("complete")}function l(e){g.$error=e,d("error")}function d(e,n){if(n||e!==v){var o=f[e];if(m&&m.$destroy(),!o)return void r.empty();m=g.$new(),v=e,o(m,function(e){r.empty(),r.append(e)})}g.$root.$$phase||g.$digest(!0)}var m,v,h,g=n.$new(!0,e);r.empty(),e.$watch(s,function(e){function r(e){var r=e.shift(),o=e;return function(e){var t=e[r];return t?n(o,t):i.fromValue()}}function n(e,n){var o=c(n);return e.length?i.switchMap.call(o,r(e)):o}h&&(h.unsubscribe(),h=null),h=n(t,e).subscribe(a,l,p),d("loading")}),e.$on("$destroy",function(){h&&(h.unsubscribe(),h=null)})}}function c(e){return e&&"function"==typeof e.subscribe?e:e&&"function"==typeof e.then?i.fromPromise(e):i.fromValue(e)}function a(r,n){var t={},i={loading:[],active:[],error:[],complete:[]},u=[];o.forEach(r.contents(),function(e){switch(e.nodeName.toLowerCase()){case"loading":return i.loading.push(e);case"active":return i.active.push(e);case"error":return i.error.push(e);case"complete":return i.complete.push(e);default:return u.push(e)}});var c=!1;if(o.forEach(i,function(r,n){if(r.length){c=!0;var i=o.element(r).clone();t[n]=e(i)}}),!c){u.length||u.push(document.createTextNode("{{"+n+"}}"));var a=o.element(u).clone();t.active=e(a),t.complete=e(a.clone())}return t}return{restrict:"EA",scope:!0,compile:u}}])},function(e,n){e.exports=r}])});
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("angular"),require("@reactivex/rx")):"function"==typeof define&&define.amd?define(["angular","rx"],r):"object"==typeof exports?exports.AngularObserve=r(require("angular"),require("@reactivex/rx")):e.AngularObserve=r(e.angular,e.Rx)}(this,function(e,r){return function(e){function r(o){if(n[o])return n[o].exports;var t=n[o]={exports:{},id:o,loaded:!1};return e[o].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}var n={};return r.m=e,r.c=n,r.p="",r(0)}([function(e,r,n){var o=n(1),t=n(3);e.exports=n(2),o.module(e.exports).config(["asyncBindConfigProvider",function(e){e.fromPromise=t.Observable.fromPromise,e.fromValue=t.Observable.of,e.map=t.Observable.prototype.map,e.switchMap=t.Observable.prototype.switchMap}])},function(r,n){r.exports=e},function(e,r,n){var o=n(1);e.exports="filearts.angularObserve";var t=o.module(e.exports,[]);t.provider("asyncBindConfig",[function(){this.fromValue=function(){throw new Error("You need to overwrite `asyncBindConfig.fromValue`.")},this.fromPromise=function(){throw new Error("You need to overwrite `asyncBindConfig.fromPromise`.")},this.map=function(){throw new Error("You need to overwrite `asyncBindConfig.map`.")},this.switchMap=function(){throw new Error("You need to overwrite `asyncBindConfig.switchMap`.")},this.$get=function(){return this}}]),t.directive("asyncBind",["$compile","$q","$rootScope","$timeout","asyncBindConfig",function(e,r,n,t,i){function u(e,r){var o=(r.asyncBind||r.source).split(/\s+as\s+/i),t=o.shift().split("."),u=o[0]||"$value",s=t.shift(),f=a(e,u);return function(e,r,o){function a(e){function r(e){var r=typeof e;return"boolean"===r||"number"===r||"string"===r}var n=!r(g[u])||!r(e);g[u]=e,d("active",n)}function p(e){d("complete")}function l(e){g.$error=e,d("error")}function d(e,n){if(n||e!==v){var o=f[e];if(m&&m.$destroy(),!o)return void r.empty();m=g.$new(),v=e,o(m,function(e){r.empty(),r.append(e)})}g.$root.$$phase||g.$digest(!0)}var m,v,h,g=n.$new(!0,e);r.empty(),e.$watch(s,function(e){function r(e){var r=e.shift(),o=e;return function(e){var t=e[r];return t?n(o,t):i.fromValue()}}function n(e,n){var o=c(n);return e.length?i.switchMap.call(o,r(e)):o}h&&(h.unsubscribe(),h=null),h=n(t,e).subscribe(a,l,p),d("loading")}),e.$on("$destroy",function(){h&&(h.unsubscribe(),h=null)})}}function c(e){return e&&"function"==typeof e.subscribe?e:e&&"function"==typeof e.then?i.fromPromise(e):i.fromValue(e)}function a(r,n){var t={},i={loading:[],active:[],error:[],complete:[]},u=[];o.forEach(r.contents(),function(e){switch(e.nodeName.toLowerCase()){case"loading":return i.loading.push(e);case"active":return i.active.push(e);case"error":return i.error.push(e);case"complete":return i.complete.push(e);default:return u.push(e)}});var c=!1;if(o.forEach(i,function(r,n){if(r.length){c=!0;var i=o.element(r).clone();t[n]=e(i)}}),!c){u.length||u.push(document.createTextNode("{{"+n+"}}"));var a=o.element(u).clone();t.active=e(a),t.complete=e(a.clone())}return t}return{restrict:"EA",scope:!0,compile:u}}])},function(e,n){e.exports=r}])});
{
"name": "angular-observe",
"version": "3.0.1",
"version": "3.0.2",
"description": "Angular directive for representing the different states of an Observable.",

@@ -5,0 +5,0 @@ "main": "./dist/angular-observe.js",

@@ -34,3 +34,8 @@ var _ = require('lodash');

externals: {
'rx': 'rx',
'rx': {
commonjs: 'rx',
commonjs2: 'rx',
amd: 'rx',
root: 'Rx'
},
},

@@ -55,3 +60,3 @@ }, baseConfig),

amd: 'rx',
root: 'rx'
root: 'Rx'
},

@@ -58,0 +63,0 @@ },

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