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

karl-common-util

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

karl-common-util - npm Package Compare versions

Comparing version 1.3.9 to 1.4.0

8

dist/array/index.js
"use strict";
function _toArray(arr) { return Array.isArray(arr) ? arr : Array.from(arr); }
if (!Array.prototype.aggregate) {

@@ -9,7 +7,7 @@ Array.prototype.aggregate = function (_ref) {

key = _ref$key === undefined ? [] : _ref$key,
_ref$value = _toArray(_ref.value),
_ref$data = _ref.data,
data = _ref$data === undefined ? [] : _ref$data;
_ref$value = _ref.value,
value = _ref$value === undefined ? [] : _ref$value;
var newData = [];
var data = this.concat();
data.forEach(function (d) {

@@ -16,0 +14,0 @@ //遍历key,按key组成新的主键

{
"name": "karl-common-util",
"version": "1.3.9",
"version": "1.4.0",
"description": "karl common lib for client and server",

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

if (!Array.prototype.aggregate) {
Array.prototype.aggregate = function ({key = [], value: [], data = []}) {
Array.prototype.aggregate = function ({key = [], value = []}) {
let newData = []
let data = this.concat()
data.forEach(d => {

@@ -5,0 +6,0 @@ //遍历key,按key组成新的主键

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