@monerium/sdk
Advanced tools
Comparing version 2.0.0-alpha to 2.0.0-alpha.1
@@ -14,4 +14,4 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { | ||
import * as dntShim from "../_dnt.shims.js"; | ||
import { encode as encodeBase64 } from "../deps/deno.land/std@0.159.0/encoding/base64.js"; | ||
import { encode as encodeBase64URL } from "../deps/deno.land/std@0.159.0/encoding/base64url.js"; | ||
import { encode as encodeBase64 } from "../deps/deno.land/std@0.168.0/encoding/base64.js"; | ||
import { encode as encodeBase64URL } from "../deps/deno.land/std@0.168.0/encoding/base64url.js"; | ||
import { MONERIUM_CONFIG } from "./config.js"; | ||
@@ -18,0 +18,0 @@ export class MoneriumClient { |
@@ -6,3 +6,3 @@ { | ||
"name": "@monerium/sdk", | ||
"version": "2.0.0-alpha", | ||
"version": "2.0.0-alpha.1", | ||
"description": "Everything you need to interact with the Monerium API - an electronic money issuer.", | ||
@@ -20,8 +20,8 @@ "license": "MIT", | ||
"import": { | ||
"default": "./esm/mod.js", | ||
"types": "./types/mod.d.ts" | ||
"types": "./types/mod.d.ts", | ||
"default": "./esm/mod.js" | ||
}, | ||
"require": { | ||
"default": "./script/mod.js", | ||
"types": "./types/mod.d.ts" | ||
"types": "./types/mod.d.ts", | ||
"default": "./script/mod.js" | ||
} | ||
@@ -34,10 +34,10 @@ } | ||
"dependencies": { | ||
"@deno/shim-deno": "~0.10.0", | ||
"@deno/shim-deno": "~0.11.0", | ||
"@deno/shim-crypto": "~0.3.1", | ||
"undici": "^5.8.0" | ||
"undici": "^5.12.0" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "16.11.37", | ||
"chalk": "4.1.2" | ||
"@types/node": "^18.11.9", | ||
"chalk": "^4.1.2" | ||
} | ||
} |
@@ -40,4 +40,4 @@ "use strict"; | ||
const dntShim = __importStar(require("../_dnt.shims.js")); | ||
const base64_js_1 = require("../deps/deno.land/std@0.159.0/encoding/base64.js"); | ||
const base64url_js_1 = require("../deps/deno.land/std@0.159.0/encoding/base64url.js"); | ||
const base64_js_1 = require("../deps/deno.land/std@0.168.0/encoding/base64.js"); | ||
const base64url_js_1 = require("../deps/deno.land/std@0.168.0/encoding/base64url.js"); | ||
const config_js_1 = require("./config.js"); | ||
@@ -44,0 +44,0 @@ class MoneriumClient { |
@@ -8,3 +8,3 @@ import { Deno } from "@deno/shim-deno"; | ||
export { TextEncoder } from "util"; | ||
export declare const dntGlobalThis: Omit<typeof globalThis, "Deno" | "crypto" | "fetch" | "File" | "FormData" | "Headers" | "Request" | "Response" | "TextEncoder"> & { | ||
export declare const dntGlobalThis: Omit<typeof globalThis, "TextEncoder" | "Deno" | "crypto" | "fetch" | "File" | "FormData" | "Headers" | "Request" | "Response"> & { | ||
Deno: typeof Deno; | ||
@@ -11,0 +11,0 @@ crypto: import("@deno/shim-crypto").Crypto; |
@@ -1,6 +0,6 @@ | ||
export declare type Environment = { | ||
export type Environment = { | ||
api: string; | ||
web: string; | ||
}; | ||
export declare type Config = { | ||
export type Config = { | ||
environments: { | ||
@@ -25,3 +25,3 @@ production: Environment; | ||
} | ||
export declare type AuthArgs = Omit<AuthCode, "grant_type"> | Omit<RefreshToken, "grant_type"> | Omit<ClientCredentials, "grant_type">; | ||
export type AuthArgs = Omit<AuthCode, "grant_type"> | Omit<RefreshToken, "grant_type"> | Omit<ClientCredentials, "grant_type">; | ||
export interface AuthCode { | ||
@@ -47,4 +47,4 @@ grant_type: "authorization_code"; | ||
} | ||
export declare type PKCERequestArgs = Omit<PKCERequest, "code_challenge" | "code_challenge_method" | "response_type">; | ||
export declare type PKCERequest = { | ||
export type PKCERequestArgs = Omit<PKCERequest, "code_challenge" | "code_challenge_method" | "response_type">; | ||
export type PKCERequest = { | ||
client_id: string; | ||
@@ -73,3 +73,3 @@ code_challenge: string; | ||
} | ||
declare type AuthProfile = { | ||
type AuthProfile = { | ||
id: string; | ||
@@ -104,3 +104,3 @@ type: Type; | ||
} | ||
declare type KYC = { | ||
type KYC = { | ||
state: KYCState; | ||
@@ -113,3 +113,3 @@ outcome: KYCOutcome; | ||
} | ||
declare type Account = { | ||
type Account = { | ||
address: string; | ||
@@ -142,3 +142,3 @@ currency: Currency; | ||
} | ||
declare type Balance = { | ||
type Balance = { | ||
currency: Currency; | ||
@@ -164,3 +164,3 @@ amount: string; | ||
} | ||
declare type Fee = { | ||
type Fee = { | ||
provider: "satchel"; | ||
@@ -170,7 +170,7 @@ currency: Currency; | ||
}; | ||
declare type IBAN = { | ||
type IBAN = { | ||
standard: PaymentStandard.iban; | ||
iban: string; | ||
}; | ||
declare type SCAN = { | ||
type SCAN = { | ||
standard: PaymentStandard.scan; | ||
@@ -180,3 +180,3 @@ sortCode: string; | ||
}; | ||
declare type Individual = { | ||
type Individual = { | ||
firstName: string; | ||
@@ -186,11 +186,11 @@ lastName: string; | ||
}; | ||
declare type Corporation = { | ||
type Corporation = { | ||
companyName: string; | ||
country: string; | ||
}; | ||
declare type Counterpart = { | ||
type Counterpart = { | ||
identifier: IBAN | SCAN; | ||
details: Individual | Corporation; | ||
}; | ||
declare type OrderMetadata = { | ||
type OrderMetadata = { | ||
approvedAt: string; | ||
@@ -252,3 +252,3 @@ processedAt: string; | ||
} | ||
declare type SupportingDocMetadata = { | ||
type SupportingDocMetadata = { | ||
uploadedBy: string; | ||
@@ -255,0 +255,0 @@ createdAt: string; |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
51593
1449
1
+ Added@deno/shim-deno@0.11.0(transitive)
+ Added@deno/shim-deno-test@0.4.0(transitive)
- Removed@deno/shim-deno@0.10.0(transitive)
- Removed@deno/shim-deno-test@0.3.3(transitive)
Updated@deno/shim-deno@~0.11.0
Updatedundici@^5.12.0