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

angular-immutable

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-immutable - npm Package Compare versions

Comparing version 0.0.3 to 0.1.0

demo/bower_components/angular/.bower.json

2

bower.json
{
"name": "angular-immutable",
"version": "0.0.3",
"version": "0.0.1",
"main": "./dist/immutable.js",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/mgechev/angular-immutable",

(function () {
"use strict";
var immutableFilter = (function() {
return (function(val) {
if (val instanceof Immutable.Collection) {
return val.toJS();
var immutableDirective = (function() {
var priority = 2000;
var scope = true;
var link = (function(scope, el, attrs) {
var immutable = attrs.immutable;
if (!(/^[a-zA-Z0-9_$]+$/).test(immutable)) {
return ;
}
return val;
if (!scope[immutable]) {
console.warn(("No " + immutable + " property found."));
}
scope.$watch((function() {
return scope.$parent[immutable];
}), (function(val) {
scope[immutable] = val.toJS();
}));
});
return {
priority: priority,
scope: scope,
link: link
};
});
angular.module('immutable', []).filter('immutable', immutableFilter);
angular.module('immutable', []).directive('immutable', immutableDirective);
}());

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

!function(){"use strict";var t=function(){return function(t){return t instanceof Immutable.Collection?t.toJS():t}};angular.module("immutable",[]).filter("immutable",t)}();
!function(){"use strict";var t=function(){var t=2e3,n=!0,r=function(t,n,r){var e=r.immutable;/^[a-zA-Z0-9_$]+$/.test(e)&&(t[e]||console.warn("No "+e+" property found."),t.$watch(function(){return t.$parent[e]},function(n){t[e]=n.toJS()}))};return{priority:t,scope:n,link:r}};angular.module("immutable",[]).directive("immutable",t)}();

@@ -1,13 +0,24 @@

/* global angular, Immutable */
/* global angular */
var immutableFilter = () => {
return (val) => {
if (val instanceof Immutable.Collection) {
return val.toJS();
var immutableDirective = () => {
let priority = 2000;
let scope = true;
let link = (scope, el, attrs) => {
let { immutable } = attrs;
if (!(/^[a-zA-Z0-9_$]+$/).test(immutable)) {
return;
}
return val;
if (!scope[immutable]) {
console.warn(`No ${immutable} property found.`);
}
scope.$watch(() => {
return scope.$parent[immutable];
}, (val) => {
scope[immutable] = val.toJS();
});
};
return { priority, scope, link };
};
angular.module('immutable', [])
.filter('immutable', immutableFilter);
.directive('immutable', immutableDirective);
{
"name": "angular-immutable",
"repository": "git@github.com:mgechev/angular-immutable.git",
"version": "0.0.3",
"version": "0.1.0",
"description": "Immutable data structures in AngularJS",

@@ -12,5 +11,2 @@ "main": "./dist/immutable.js",

"license": "MIT",
"dependencies": {
"angular": ">=1.1.1"
},
"devDependencies": {

@@ -17,0 +13,0 @@ "gulp": "^3.8.11",

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