Socket
Socket
Sign inDemoInstall

@rpldy/shared

Package Overview
Dependencies
Maintainers
1
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rpldy/shared - npm Package Compare versions

Comparing version 0.9.0 to 0.10.0

3

lib/cjs/batchItem.js

@@ -31,3 +31,3 @@ "use strict";

var isPending = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
iCounter += 1; //keep existing id for recycled items
iCounter += f.id && f.batchId ? 0 : 1; //keep existing id for recycled items

@@ -40,2 +40,3 @@ var id = f.id && f.batchId ? f.id : "".concat(batchId, ".item-").concat(iCounter),

state: state,
uploadStatus: 0,
completed: 0,

@@ -42,0 +43,0 @@ loaded: 0,

@@ -23,3 +23,3 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function (obj) { return typeof obj; }; } else { _typeof = function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

var isPending = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
iCounter += 1; //keep existing id for recycled items
iCounter += f.id && f.batchId ? 0 : 1; //keep existing id for recycled items

@@ -32,2 +32,3 @@ var id = f.id && f.batchId ? f.id : "".concat(batchId, ".item-").concat(iCounter),

state: state,
uploadStatus: 0,
completed: 0,

@@ -34,0 +35,0 @@ loaded: 0,

MIT License
Copyright (c) 2020 Yoav Niran
Copyright (c) 2021 Yoav Niran

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

{
"version": "0.9.0",
"version": "0.10.0",
"name": "@rpldy/shared",

@@ -30,3 +30,3 @@ "description": "internal set of utils+types for react-uploady",

},
"gitHead": "e6949c50f2880269d5ee181f9349061b01ce51e3"
"gitHead": "f9266271a12c840e60b6fcc98d78bc2aa583d5d2"
}

@@ -11,2 +11,4 @@ export type Destination = {

export type FormatServerResponseMethod = (response: string, status: number, headers: Record<string, string> | undefined) => unknown;
export type FileFilterMethod = (file: unknown, index: number, files: unknown[]) => boolean;

@@ -17,4 +19,2 @@

clearPendingOnAdd?: boolean;
destination?: Destination;
inputFieldName?: string;
formatGroupParamName?: FormatParamGroupNameMethod;

@@ -24,2 +24,6 @@ grouped?: boolean;

fileFilter?: FileFilterMethod;
//send options
destination?: Destination;
inputFieldName?: string;
method?: string;

@@ -30,2 +34,3 @@ params?: Record<string, unknown>;

sendWithFormData?: boolean;
formatServerResponse?: FormatServerResponseMethod,
}

@@ -50,2 +55,3 @@

loaded: number;
orgItemCount: number;
};

@@ -68,2 +74,3 @@

uploadResponse?: any;
uploadStatus: number;
completed: number;

@@ -70,0 +77,0 @@ loaded: number;

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