Skip to content

Commit

Permalink
headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Leif Shackelford committed Jul 5, 2022
1 parent f9b1cb7 commit e1c0984
Show file tree
Hide file tree
Showing 7 changed files with 114 additions and 104 deletions.
4 changes: 3 additions & 1 deletion dist/fetch.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ export interface FetchOptions {
[x: string]: string;
};
}
export declare function getPostHeaders({ baseHeaders, additionalHeaders, }: Partial<FetchOptions>): {
export declare function getHeaders({ isPost, baseHeaders, additionalHeaders, }: Partial<FetchOptions> & {
isPost: boolean;
}): {
[x: string]: string;
};
export declare const getOptions: (_options: FetchOptions | string) => any;
Expand Down
36 changes: 19 additions & 17 deletions dist/fetch.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/fetch.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 12 additions & 12 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@cannabis-labeling-api/fetch",
"private": false,
"description": "fetch QR details from a compliant Cannabis Labeling endpoint",
"version": "0.1.3",
"version": "0.1.4",
"homepage": "https://github.com/cannabis-labeling-api/fetch",
"author": "Leif Shackelford <[email protected]>",
"engines": {
Expand Down
Loading

0 comments on commit e1c0984

Please sign in to comment.