Skip to content

Commit

Permalink
Cleanup headers (#4)
Browse files Browse the repository at this point in the history
* fix: Do not fill in acme headers

* chore: Upgrade deps
  • Loading branch information
tomas-zijdemans-vipps authored Dec 18, 2023
1 parent 2be35e8 commit fa1b221
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion sample_code/checkout_sample.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import "https://deno.land/std@0.208.0/dotenv/load.ts";
import "https://deno.land/std@0.209.0/dotenv/load.ts";
import { Client } from "https://deno.land/x/vipps_mobilepay_sdk@0.1.0/mod.ts";

// First, get your API keys from https://portal.vipps.no/
Expand Down
2 changes: 1 addition & 1 deletion sample_code/epayment_sample.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { open } from "https://deno.land/x/open@v0.0.6/index.ts";
import "https://deno.land/std@0.208.0/dotenv/load.ts";
import "https://deno.land/std@0.209.0/dotenv/load.ts";
import { Client } from "https://deno.land/x/vipps_mobilepay_sdk@0.1.0/mod.ts";

// First, get your API keys from https://portal.vipps.no/
Expand Down
2 changes: 1 addition & 1 deletion sample_code/webhook_sample.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import "https://deno.land/std@0.208.0/dotenv/load.ts";
import "https://deno.land/std@0.209.0/dotenv/load.ts";
import { Client } from "https://deno.land/x/vipps_mobilepay_sdk@0.1.0/mod.ts";

// First, get your API keys from https://portal.vipps.no/
Expand Down
8 changes: 4 additions & 4 deletions src/base_client_helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,10 @@ export const buildRequest = (
"User-Agent": getUserAgent(),
"Ocp-Apim-Subscription-Key": cfg.subscriptionKey,
"Merchant-Serial-Number": cfg.merchantSerialNumber,
"Vipps-System-Name": cfg.systemName || "acme-systems",
"Vipps-System-Version": cfg.systemVersion || "1.0.0",
"Vipps-System-Plugin-Name": cfg.pluginName || "acme-plugin",
"Vipps-System-Plugin-Version": cfg.pluginVersion || "1.0.0",
"Vipps-System-Name": cfg.systemName || "",
"Vipps-System-Version": cfg.systemVersion || "",
"Vipps-System-Plugin-Name": cfg.pluginName || "",
"Vipps-System-Plugin-Version": cfg.pluginVersion || "",
"Idempotency-Key": crypto.randomUUID(),
},
},
Expand Down
4 changes: 2 additions & 2 deletions src/deps.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export {
retry,
RetryError,
} from "https://deno.land/std@0.208.0/async/retry.ts";
export { isErrorStatus } from "https://deno.land/std@0.208.0/http/status.ts";
} from "https://deno.land/std@0.209.0/async/retry.ts";
export { isErrorStatus } from "https://deno.land/std@0.209.0/http/status.ts";
2 changes: 1 addition & 1 deletion tests/test_deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ export {
assert,
assertEquals,
assertNotEquals,
} from "https://deno.land/std@0.208.0/assert/mod.ts";
} from "https://deno.land/std@0.209.0/assert/mod.ts";
export * as mf from "https://deno.land/x/mock_fetch@0.3.0/mod.ts";

0 comments on commit fa1b221

Please sign in to comment.