🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

angular-messages

Package Overview
Dependencies
Maintainers
1
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-messages - npm Package Compare versions

Comparing version
1.8.2
to
1.8.3
+2
-2
angular-messages.js
/**
* @license AngularJS v1.8.2
* @license AngularJS v1.8.3
* (c) 2010-2020 Google LLC. http://angularjs.org

@@ -294,3 +294,3 @@ * License: MIT

})
.info({ angularVersion: '1.8.2' })
.info({ angularVersion: '1.8.3' })

@@ -297,0 +297,0 @@ /**

/*
AngularJS v1.8.2
AngularJS v1.8.3
(c) 2010-2020 Google LLC. http://angularjs.org

@@ -7,3 +7,3 @@ License: MIT

(function(z,l){'use strict';function q(n){return["$animate",function(u){return{restrict:"AE",transclude:"element",priority:1,terminal:!0,require:"^^ngMessages",link:function(m,f,a,e,r){var b,h,s;if(!n){b=f[0];s=a.ngMessage||a.when;a=a.ngMessageExp||a.whenExp;var k=function(c){h=c?v(c)?c:c.split(/[\s,]+/):null;e.reRender()};a?(k(m.$eval(a)),m.$watchCollection(a,k)):k(s)}var g,t;e.register(b,t={test:function(c){var b=h;c=b?v(b)?0<=b.indexOf(c):b.hasOwnProperty(c):void 0;return c},attach:function(){g||
r(function(c,a){u.enter(c,null,f);g=c;var d=g.$$attachId=e.getAttachId();g.on("$destroy",function(){g&&g.$$attachId===d&&(e.deregister(b,n),t.detach());a.$destroy()})})},detach:function(){if(g){var c=g;g=null;u.leave(c)}}},n);m.$on("$destroy",function(){e.deregister(b,n)})}}}]}var x,v,p,y;l.module("ngMessages",[],function(){x=l.forEach;v=l.isArray;p=l.isString;y=l.element}).info({angularVersion:"1.8.2"}).directive("ngMessages",["$animate",function(n){function u(f,a){return p(a)&&0===a.length||m(f.$eval(a))}
r(function(c,a){u.enter(c,null,f);g=c;var d=g.$$attachId=e.getAttachId();g.on("$destroy",function(){g&&g.$$attachId===d&&(e.deregister(b,n),t.detach());a.$destroy()})})},detach:function(){if(g){var c=g;g=null;u.leave(c)}}},n);m.$on("$destroy",function(){e.deregister(b,n)})}}}]}var x,v,p,y;l.module("ngMessages",[],function(){x=l.forEach;v=l.isArray;p=l.isString;y=l.element}).info({angularVersion:"1.8.3"}).directive("ngMessages",["$animate",function(n){function u(f,a){return p(a)&&0===a.length||m(f.$eval(a))}
function m(f){return p(f)?f.length:!!f}return{require:"ngMessages",restrict:"AE",controller:["$element","$scope","$attrs",function(f,a,e){function r(c,b){for(var d=b,a=[];d&&d!==c;){var e=d.$$ngMessageNode;if(e&&e.length)return k[e];d.childNodes.length&&-1===a.indexOf(d)?(a.push(d),d=d.childNodes[d.childNodes.length-1]):d.previousSibling?d=d.previousSibling:(d=d.parentNode,a.push(d))}}var b=this,h=0,s=0;this.getAttachId=function(){return s++};var k=this.messages={},g,t;this.render=function(c){c=c||

@@ -10,0 +10,0 @@ {};g=!1;t=c;for(var w=u(a,e.ngMessagesMultiple)||u(a,e.multiple),d=[],r={},h=0,k=b.head,s=!1,l=0;null!=k;){l++;var p=k.message,q=!1;s||x(c,function(b,c){m(b)&&!q&&(h++,p.test(c)&&!r[c]&&(q=r[c]=!0,p.attach()))});q?s=!w:d.push(p);k=k.next}x(d,function(c){c.detach()});c=d.length!==l;(w=b.default&&!c&&0<h)?b.default.attach():b.default&&b.default.detach();c||w?n.setClass(f,"ng-active","ng-inactive"):n.setClass(f,"ng-inactive","ng-active")};a.$watchCollection(e.ngMessages||e["for"],b.render);this.reRender=

{
"name": "angular-messages",
"version": "1.8.2",
"version": "1.8.3",
"license": "MIT",

@@ -8,4 +8,4 @@ "main": "./angular-messages.js",

"dependencies": {
"angular": "1.8.2"
"angular": "1.8.3"
}
}
{
"name": "angular-messages",
"version": "1.8.2",
"version": "1.8.3",
"description": "AngularJS module that provides enhanced support for displaying messages within templates",

@@ -5,0 +5,0 @@ "main": "index.js",

# packaged angular-messages
This repo is for distribution on `npm` and `bower`. The source for this module is in the
[main AngularJS repo](https://github.com/angular/angular.js/tree/master/src/ngMessages).
Please file issues and pull requests against that repo.
**This package contains the legacy AngularJS (version 1.x). AngularJS support has officially ended
as of January 2022.
[See what ending support means](https://docs.angularjs.org/misc/version-support-status) and
[read the end of life announcement](https://goo.gle/angularjs-end-of-life).**
**[See `@angular/core` for the actively supported Angular](https://npmjs.com/@angular/core).**
## Install

@@ -50,3 +53,3 @@

Copyright (c) 2010-2015 Google, Inc. http://angularjs.org
Copyright (c) 2022 Google LLC

@@ -53,0 +56,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy