popsicle-transport-xhr
Advanced tools
Comparing version 1.0.2 to 2.0.0
@@ -69,3 +69,3 @@ "use strict"; | ||
return new Promise(function (resolve, reject) { | ||
const type = options.type || "text"; | ||
const type = options.type || "arraybuffer"; | ||
const method = req.method.toUpperCase(); | ||
@@ -72,0 +72,0 @@ if (req.signal.aborted) { |
{ | ||
"name": "popsicle-transport-xhr", | ||
"version": "1.0.2", | ||
"version": "2.0.0", | ||
"description": "Popsicle transport for sending requests over `XMLHttpRequest`", | ||
@@ -13,8 +13,8 @@ "main": "dist/index.js", | ||
"lint": "tslint \"src/**/*.ts\" --project tsconfig.json", | ||
"format": "npm run prettier -- README.md \"src/**/*.{js,ts}\"", | ||
"format": "npm run prettier -- \"*.{md,yml,yaml}\" \"src/**/*.{js,jsx,ts,tsx}\"", | ||
"build": "rimraf dist && tsc", | ||
"specs": "jest --coverage", | ||
"test": "npm run lint && npm run build && npm run specs && npm run size", | ||
"size": "size-limit", | ||
"prepare": "npm run build" | ||
"test": "npm run -s lint && npm run -s build && npm run -s specs && npm run -s size", | ||
"prepare": "npm run build", | ||
"size": "size-limit" | ||
}, | ||
@@ -71,3 +71,3 @@ "repository": { | ||
"lint-staged": { | ||
"*.{js,json,css,md}": [ | ||
"*.{js,jsx,ts,tsx,json,css,md,yml,yaml}": [ | ||
"npm run prettier", | ||
@@ -84,10 +84,10 @@ "git add" | ||
"devDependencies": { | ||
"@size-limit/preset-small-lib": "^2.1.6", | ||
"@types/jest": "^24.0.13", | ||
"@types/node": "^12.0.7", | ||
"husky": "^2.4.0", | ||
"husky": "^3.0.9", | ||
"jest": "^24.8.0", | ||
"lint-staged": "^8.2.0", | ||
"lint-staged": "^9.4.2", | ||
"prettier": "^1.18.2", | ||
"servie": "^4.2.1", | ||
"size-limit": "^1.3.6", | ||
"ts-jest": "^24.0.2", | ||
@@ -94,0 +94,0 @@ "tslint": "^5.17.0", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24502
84582