@neonjungle/birdseed
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -26,2 +26,12 @@ /** | ||
getFetchOptions(formMethod) { | ||
return { | ||
method: formMethod, | ||
credentials: 'same-origin', | ||
headers: { | ||
"X-Requested-With": "XMLHttpRequest" | ||
}, | ||
} | ||
} | ||
fetchAndReplace() { | ||
@@ -32,9 +42,3 @@ this.beforeFetch(); | ||
let formMethod = this.form.method ? this.form.method.toUpperCase() : "POST"; | ||
let fetchOptions = { | ||
method: formMethod, | ||
credentials: "same-origin", | ||
headers: { | ||
"X-Requested-With": "XMLHttpRequest" | ||
}, | ||
} | ||
let fetchOptions = this.getFetchOptions(formMethod); | ||
let formAction = this.form.action; | ||
@@ -41,0 +45,0 @@ const formData = new FormData(this.form) |
{ | ||
"name": "@neonjungle/birdseed", | ||
"version": "0.5.0", | ||
"description": "Collection of handy utility methods for Neon Jungle", | ||
"main": "", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+ssh://git@gitlab.com/neonjungle/birdseed.git" | ||
}, | ||
"author": "Neon Jungle", | ||
"license": "Copyright", | ||
"bugs": { | ||
"url": "https://gitlab.com/neonjungle/birdseedissues" | ||
}, | ||
"homepage": "https://gitlab.com/neonjungle/birdseed#README", | ||
"devDependencies": { | ||
"prettier": "^1.14.3", | ||
"prettier-stylelint": "^0.4.2", | ||
"stylelint-csstree-validator": "^1.3.0" | ||
}, | ||
"dependencies": { | ||
"bowser": "^2.4.0", | ||
"core-js": "^3.2.1" | ||
}, | ||
"stylelint": { | ||
"plugins": [ | ||
"stylelint-csstree-validator" | ||
], | ||
"extends": [ | ||
"./node_modules/prettier-stylelint/config.js" | ||
], | ||
"rules": { | ||
"csstree/validator": true, | ||
"indentation": "tab", | ||
"string-quotes": "double" | ||
} | ||
}, | ||
"prettier": { | ||
"useTabs": true | ||
} | ||
} | ||
"name": "@neonjungle/birdseed", | ||
"version": "0.5.1", | ||
"description": "Collection of handy utility methods for Neon Jungle", | ||
"main": "", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+ssh://git@gitlab.com/neonjungle/birdseed.git" | ||
}, | ||
"author": "Neon Jungle", | ||
"license": "Copyright", | ||
"bugs": { | ||
"url": "https://gitlab.com/neonjungle/birdseedissues" | ||
}, | ||
"homepage": "https://gitlab.com/neonjungle/birdseed#README", | ||
"devDependencies": { | ||
"prettier": "^1.14.3", | ||
"prettier-stylelint": "^0.4.2", | ||
"stylelint-csstree-validator": "^1.3.0" | ||
}, | ||
"dependencies": { | ||
"bowser": "^2.4.0", | ||
"core-js": "^3.2.1" | ||
}, | ||
"stylelint": { | ||
"plugins": [ | ||
"stylelint-csstree-validator" | ||
], | ||
"extends": [ | ||
"./node_modules/prettier-stylelint/config.js" | ||
], | ||
"rules": { | ||
"csstree/validator": true, | ||
"indentation": "tab", | ||
"string-quotes": "double" | ||
} | ||
}, | ||
"prettier": { | ||
"useTabs": true | ||
} | ||
} |
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
32618
749