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

informed

Package Overview
Dependencies
Maintainers
2
Versions
404
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

informed - npm Package Compare versions

Comparing version 4.58.2 to 4.58.3

25

dist/cjs/ObjectMap.js

@@ -47,2 +47,13 @@ 'use strict';

/* --------------------- move --------------------- */
var ldmove = function ldmove(arr, fromIndex, toIndex) {
if (Array.isArray(arr) && fromIndex < arr.length && toIndex < arr.length) {
var item = arr.splice(fromIndex, 1)[0];
arr.splice(toIndex, 0, item);
} else {
// Handle invalid operation more gracefully in real scenarios
console.warn("Attempted to move from ".concat(fromIndex, " to ").concat(toIndex, " but the operation is not valid."));
}
};
/* --------------------- has --------------------- */

@@ -273,4 +284,2 @@

}
// Very important ;)
}, {

@@ -289,2 +298,14 @@ key: "swap",

}
}, {
key: "move",
value: function move(object, path, fromIndex, toIndex) {
console.log('Moving:', path, fromIndex, 'to', toIndex);
// Get the array at the specified path
var arr = ldget(object, path);
console.log('Array before move', JSON.stringify(arr));
// Use ldmove to perform the operation
ldmove(arr, fromIndex, toIndex);
console.log('Array after move', JSON.stringify(arr));
}
}]);

@@ -291,0 +312,0 @@ return ObjectMap;

@@ -43,2 +43,13 @@ import { createClass as _createClass, typeof as _typeof, classCallCheck as _classCallCheck } from './_virtual/_rollupPluginBabelHelpers.js';

/* --------------------- move --------------------- */
var ldmove = function ldmove(arr, fromIndex, toIndex) {
if (Array.isArray(arr) && fromIndex < arr.length && toIndex < arr.length) {
var item = arr.splice(fromIndex, 1)[0];
arr.splice(toIndex, 0, item);
} else {
// Handle invalid operation more gracefully in real scenarios
console.warn("Attempted to move from ".concat(fromIndex, " to ").concat(toIndex, " but the operation is not valid."));
}
};
/* --------------------- has --------------------- */

@@ -269,4 +280,2 @@

}
// Very important ;)
}, {

@@ -285,2 +294,14 @@ key: "swap",

}
}, {
key: "move",
value: function move(object, path, fromIndex, toIndex) {
console.log('Moving:', path, fromIndex, 'to', toIndex);
// Get the array at the specified path
var arr = ldget(object, path);
console.log('Array before move', JSON.stringify(arr));
// Use ldmove to perform the operation
ldmove(arr, fromIndex, toIndex);
console.log('Array after move', JSON.stringify(arr));
}
}]);

@@ -287,0 +308,0 @@ return ObjectMap;

6

package.json
{
"name": "informed",
"version": "4.58.2",
"version": "4.58.3",
"description": "A lightweight framework and utility for building powerful forms in React applications",

@@ -141,3 +141,5 @@ "type": "module",

"peerDependencies": {
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
},
"optionalDependencies": {
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"

@@ -144,0 +146,0 @@ },

@@ -252,3 +252,3 @@ # Informed

**Note:** some things were left out as they are not super important or are going to be depricated or removed in future.
**Note:** some things were left out as they are not super important or are going to be deprecated or removed in future.

@@ -255,0 +255,0 @@ ```bash

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