Socket
Socket
Sign inDemoInstall

angular-auto-save-form

Package Overview
Dependencies
2
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.4.0 to 1.5.0

LICENSE

10

dist/auto-save-form.js

@@ -109,3 +109,3 @@ /*

var controls = {};
//only way to get form controls if angular doesn't implement $getControls on form object
cycleForm(formModel);

@@ -133,11 +133,11 @@

function cycleForm(formModel) {
angular.forEach(formModel, checkForm);
angular.forEach(formModel.$$controls, checkForm);
}
function checkForm(value, key) {
if (key[0] !== '$' && key[0] !== '.' && value.$dirty) {
function checkForm(value) {
if (value.$dirty) {
if (value.hasOwnProperty('$submitted')) { //check nestedForm
cycleForm(value);
} else {
var keys = key.split(/\./);
var keys = value.$name.split(/\./);
if (scope.autoSaveFormProperties && scope.autoSaveFormProperties[keys[0]]) {

@@ -144,0 +144,0 @@ keys = scope.autoSaveFormProperties[keys[0]].split(/\./);

{
"name": "angular-auto-save-form",
"version": "1.4.0",
"version": "1.5.0",
"main": "index.js",
"dependencies": {
"angular": "~1.x",
"angular": ">=1.6.x",
"lodash": ">=4.x"
},
"devDependencies": {
"browser-sync": "2.18.7",
"browser-sync": "2.18.8",
"browser-sync-spa": "1.0.3",
"chalk": "1.1.3",
"del": "2.2.2",
"eslint-plugin-angular": "1.6.1",
"eslint-plugin-angular": "2.3.0",
"estraverse": "4.2.0",

@@ -28,3 +28,3 @@ "gulp": "3.9.1",

"gulp-ng-annotate": "2.0.0",
"gulp-protractor": "3.0.0",
"gulp-protractor": "4.1.0",
"gulp-rename": "1.2.2",

@@ -35,8 +35,8 @@ "gulp-replace": "0.5.4",

"gulp-size": "2.1.0",
"gulp-sourcemaps": "2.1.1",
"gulp-uglify": "2.0.1",
"gulp-sourcemaps": "2.6.0",
"gulp-uglify": "2.1.2",
"gulp-useref": "3.1.2",
"gulp-util": "3.0.8",
"http-proxy-middleware": "0.17.3",
"karma": "1.4.1",
"http-proxy-middleware": "0.17.4",
"karma": "1.6.0",
"karma-angular-filesort": "1.0.2",

@@ -46,3 +46,3 @@ "karma-coverage": "1.1.1",

"karma-ng-html2js-preprocessor": "1.0.0",
"karma-phantomjs-launcher": "1.0.2",
"karma-phantomjs-launcher": "1.0.4",
"lodash": "4.17.4",

@@ -56,3 +56,5 @@ "main-bower-files": "2.13.1",

"scripts": {
"test": "gulp test"
"test": "gulp test",
"serve": "gulp serve",
"build": "gulp"
},

@@ -59,0 +61,0 @@ "engines": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc