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

angular-editme

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-editme - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

package.json
{
"name": "angular-editme",
"version": "1.0.3",
"version": "1.0.4",
"description": "Convert your AngularJS input and textarea elements to be edited inline ala LinkedIn profiles.",

@@ -5,0 +5,0 @@ "homepage": "http://ryandrewjohnson.github.io/angular-editme/",

@@ -170,13 +170,10 @@ (function (root, factory) {

function validate(evt) {
if (evt.type !== 'blur' && evt.keyCode !== KEYS.ENTER) {
return;
if (evt.type === 'blur' || evt.keyCode === KEYS.ENTER) {
scope.isEditing = ngModel.$invalid && ngModel.$dirty;
scope.$apply();
if (ngModel.$error && scope.onInvalid) {
scope.onInvalid({$error: angular.copy(ngModel.$error)});
}
}
let isEditing = false;
let isModelEmpty = angular.isDefined(scope.model) ? (scope.model.search(/\w+/g) < 0) : true;
isEditing = isModelEmpty ? true : (ngModel.$ivalid && ngModel.$dirty);
scope.isEditing = isEditing;
scope.$apply();
}

@@ -183,0 +180,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