Socket
Socket
Sign inDemoInstall

@ajoelp/json-to-formdata

Package Overview
Dependencies
1
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.0 to 1.3.1

.github/workflows/publish.yml

2

dist/index.js

@@ -1,2 +0,2 @@

var e=require("lodash/isObject"),n=require("lodash/isArray");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=r(e),a=r(n),o=function e(n,r,o,u){var i=u||"";(function(e){return null===e})(n)||function(e){return void 0===e}(n)?r.excludeNull||o.append(i,""):function(e){return e instanceof File}(n)||function(e){return e instanceof Blob}(n)?o.append(i,n):a.default(n)?n.forEach(function(n,t){e(n,r,o,i+"["+(r.arrayIndexes?t:"")+"]")}):t.default(n)?Object.entries(n).forEach(function(n){var t=n[0],a=t;u&&(a=r.useDotSeparator?u+"."+t:u+"["+t+"]"),e(n[1],r,o,a)}):function(e){return"boolean"==typeof e}(n)?o.append(i,n?"true":"false"):o.append(i,n)},u={arrayIndexes:!0,excludeNull:!0,useDotSeparator:!1};module.exports=function(e,n,r){return void 0===n&&(n={}),void 0===r&&(r=new FormData),e?(n=Object.assign(u,n),o(e,n,r),r):r};
var e=require("lodash/isObject"),n=require("lodash/isArray");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=/*#__PURE__*/r(e),a=/*#__PURE__*/r(n),o=function e(n,r,o,u){var i=u||"";(function(e){return null===e})(n)||function(e){return void 0===e}(n)?r.excludeNull||o.append(i,""):function(e){return e instanceof File}(n)||function(e){return e instanceof Blob}(n)?o.append(i,n):a.default(n)?n.forEach(function(n,t){e(n,r,o,i+"["+(r.arrayIndexes?t:"")+"]")}):t.default(n)?Object.entries(n).forEach(function(n){var t=n[0],a=t;u&&(a=r.useDotSeparator?u+"."+t:u+"["+t+"]"),e(n[1],r,o,a)}):function(e){return"boolean"==typeof e}(n)?o.append(i,n?"true":"false"):o.append(i,n)},u={arrayIndexes:!0,excludeNull:!0,useDotSeparator:!1};module.exports=function(e,n,r){return void 0===n&&(n={}),void 0===r&&(r=new FormData),e?(n=Object.assign(u,n),o(e,n,r),r):r};
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("lodash/isObject"),require("lodash/isArray")):"function"==typeof define&&define.amd?define(["lodash/isObject","lodash/isArray"],n):(e||self).jsonToFormdata=n(e.isObject,e.isArray)}(this,function(e,n){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=t(e),r=t(n),a=function e(n,t,a,u){var i=u||"";(function(e){return null===e})(n)||function(e){return void 0===e}(n)?t.excludeNull||a.append(i,""):function(e){return e instanceof File}(n)||function(e){return e instanceof Blob}(n)?a.append(i,n):r.default(n)?n.forEach(function(n,o){e(n,t,a,i+"["+(t.arrayIndexes?o:"")+"]")}):o.default(n)?Object.entries(n).forEach(function(n){var o=n[0],r=o;u&&(r=t.useDotSeparator?u+"."+o:u+"["+o+"]"),e(n[1],t,a,r)}):function(e){return"boolean"==typeof e}(n)?a.append(i,n?"true":"false"):a.append(i,n)},u={arrayIndexes:!0,excludeNull:!0,useDotSeparator:!1};return function(e,n,t){return void 0===n&&(n={}),void 0===t&&(t=new FormData),e?(n=Object.assign(u,n),a(e,n,t),t):t}});
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n(require("lodash/isObject"),require("lodash/isArray")):"function"==typeof define&&define.amd?define(["lodash/isObject","lodash/isArray"],n):(e||self).jsonToFormdata=n(e.isObject,e.isArray)}(this,function(e,n){function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=/*#__PURE__*/t(e),r=/*#__PURE__*/t(n),a=function e(n,t,a,u){var i=u||"";(function(e){return null===e})(n)||function(e){return void 0===e}(n)?t.excludeNull||a.append(i,""):function(e){return e instanceof File}(n)||function(e){return e instanceof Blob}(n)?a.append(i,n):r.default(n)?n.forEach(function(n,o){e(n,t,a,i+"["+(t.arrayIndexes?o:"")+"]")}):o.default(n)?Object.entries(n).forEach(function(n){var o=n[0],r=o;u&&(r=t.useDotSeparator?u+"."+o:u+"["+o+"]"),e(n[1],t,a,r)}):function(e){return"boolean"==typeof e}(n)?a.append(i,n?"true":"false"):a.append(i,n)},u={arrayIndexes:!0,excludeNull:!0,useDotSeparator:!1};return function(e,n,t){return void 0===n&&(n={}),void 0===t&&(t=new FormData),e?(n=Object.assign(u,n),a(e,n,t),t):t}});
//# sourceMappingURL=index.umd.js.map
{
"name": "@ajoelp/json-to-formdata",
"version": "1.3.0",
"version": "1.3.1",
"description": "Convert json data to a FormData object",

@@ -35,18 +35,18 @@ "keywords": [

"devDependencies": {
"@babel/core": "7.15.5",
"@babel/preset-env": "7.15.4",
"@types/jest": "27.0.1",
"@typescript-eslint/eslint-plugin": "4.31.0",
"@typescript-eslint/parser": "4.31.0",
"eslint": "^7.32.0",
"@babel/core": "7.15.8",
"@babel/preset-env": "7.15.8",
"@types/jest": "27.0.2",
"@typescript-eslint/eslint-plugin": "5.1.0",
"@typescript-eslint/parser": "5.1.0",
"eslint": "^8.0.1",
"eslint-config-prettier": "^8.1.0",
"eslint-config-standard": "^16.0.2",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.3.1",
"eslint-plugin-promise": "^5.1.1",
"jest": "27.1.1",
"microbundle": "0.13.3",
"ts-jest": "27.0.5",
"typescript": "^4.4.2"
"microbundle": "0.14.1",
"ts-jest": "27.0.7",
"typescript": "^4.4.4"
},

@@ -53,0 +53,0 @@ "source": "src/index.ts",

Sorry, the diff of this file is not supported yet

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