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.7.0 to 0.7.2

3

lib/cjs/request/request.js

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

var _default = function _default(url, data) {
var request = function (url, data) {
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};

@@ -54,2 +54,3 @@ var req = new XMLHttpRequest();

var _default = request;
exports["default"] = _default;

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

/**
* Does deep merge of simple objects (only)
* Does deep merge of simple objects and arrays (only)
*

@@ -66,0 +66,0 @@ * The first parameter is the target

@@ -11,3 +11,3 @@ var setHeaders = function (req, headers) {

export default (function (url, data) {
var request = function (url, data) {
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};

@@ -45,2 +45,4 @@ var req = new XMLHttpRequest();

return pXhr;
});
};
export default request;

@@ -51,3 +51,3 @@ import isPlainObject from "./isPlainObject";

/**
* Does deep merge of simple objects (only)
* Does deep merge of simple objects and arrays (only)
*

@@ -54,0 +54,0 @@ * The first parameter is the target

{
"version": "0.7.0",
"version": "0.7.2",
"name": "@rpldy/shared",

@@ -9,2 +9,8 @@ "description": "internal set of utils+types for react-uploady",

"main:dev": "src/index.js",
"exports": {
".": "lib/esm/index.js",
"require": "lib/cjs/index.js",
"import": "lib/esm/index.js",
"default": "lib/esm/index.js"
},
"types": "types/index.d.ts",

@@ -31,3 +37,3 @@ "license": "MIT",

},
"gitHead": "5bd0ebc140b45e44b168511f501b9f22628abd56"
"gitHead": "5dda64eb8747551defb0b6f1974020e6c38aa6d4"
}

@@ -14,2 +14,4 @@ <a href="https://badge.fury.io/js/%40rpldy%2Fshared">

> Internal package
Internal set of utils+types that all rpldy packages require and use.

@@ -27,1 +29,4 @@

## Important!
**All exports of this package are considered internal API and may change/disappear in any version: patch/minor/major**

@@ -11,3 +11,3 @@ export type Destination = {

export type FileFilterMethod = (file: unknown) => boolean;
export type FileFilterMethod = (file: unknown, index: number, files: unknown[]) => boolean;

@@ -83,2 +83,9 @@ export interface UploadOptions {

export interface RequestOptions {
method?: string;
headers?: Record<string, string>;
withCredentials?: boolean;
preSend?: (xhr: XMLHttpRequest) => void,
}
export type BatchItem = BatchUrl & BatchFile;

@@ -117,1 +124,3 @@

export const isSamePropInArrays: (arr1: any[], arr2: any[], prop: string | string[]) => boolean;
export const request: (url: string, data?: unknown, options?: RequestOptions) => Promise<XMLHttpRequest>;
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