sindresorhus / alfy

Create Alfred workflows with ease
MIT License
2.63k stars 104 forks source link

fetch method does not work correctly #151

Closed tomsan96 closed 2 years ago

tomsan96 commented 2 years ago

Hi, alfy.fetch method does not work correctly. options does not work.

import alfy from 'alfy';
await alfy.fetch("https://xxxxx", {
    method: 'POST'
})

In this case, it is executed as get method instead of post method.

package.json

{
  "name": "sample",
  "version": "1.0.0",
  "main": "index.js",
  "license": "MIT",
  "dependencies": {
    "alfy": "^0.12.2"
  },
  "type": "module"
}
tomsan96 commented 2 years ago

Thanks for the quick fix!