Skip to content

Commit c59fca0

Browse files
committed
rc4
1 parent 6f1d954 commit c59fca0

File tree

11 files changed

+24
-24
lines changed

11 files changed

+24
-24
lines changed

.eslintignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
/src/typings/**/*.ts
2-
/examples
1+
/src/__mocks__/*
2+
/src/__tests__/*
3+
/src/typings/*

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@adyen/api-library",
3-
"version": "2.2.1-rc.3",
3+
"version": "2.2.1-rc.4",
44
"description": "The Adyen API Library for NodeJS enables you to work with Adyen APIs.",
55
"main": "dist/lib/src/index.js",
66
"types": "dist/lib/src/index.d.ts",

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
* See the LICENSE file for more info.
2020
*/
2121

22-
import "./typings";
22+
// import "./typings";
2323

2424
export { default as Client } from "./client";
2525
export { default as Config } from "./config";

src/typings/applicationInfo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class ApplicationInfo {
3636
this.adyenLibrary = {
3737
name: Client.LIB_NAME,
3838
version: Client.LIB_VERSION,
39-
}
39+
};
4040
}
4141
}
4242

File renamed without changes.

src/typings/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
/// <reference path="binLookup.ts" />
55
/// <reference path="checkout.ts" />
66
/// <reference path="checkoutUtility.ts" />
7-
/// <reference path="enums/environment.ts" />
8-
/// <reference path="enums/vatCategory.ts" />
7+
/// <reference path="environment.ts" />
98
/// <reference path="marketPayAccount.ts" />
109
/// <reference path="marketPayFund.ts" />
1110
/// <reference path="marketPayHostedOnboardingPage.ts" />
@@ -18,3 +17,4 @@
1817
/// <reference path="recurring.ts" />
1918
/// <reference path="requestOptions.ts" />
2019
/// <reference path="terminal.ts" />
20+
/// <reference path="vatCategory.ts" />

src/typings/nexo.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,8 +1248,7 @@ export interface UTMCoordinates {
12481248
UTMNorthward: string;
12491249
}
12501250

1251-
export interface XMLGregorianCalendar extends Cloneable {
1252-
}
1251+
export type XMLGregorianCalendar = Cloneable
12531252

12541253
export interface Cloneable {
12551254
}

src/typings/notification.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ function invalidValue(typ: any, val: any): never {
9797

9898
function jsonToJSProps(typ: any): any {
9999
if (typ.jsonToJS === undefined) {
100-
var map: any = {};
100+
const map: any = {};
101101
typ.props.forEach((p: any) => map[p.json] = { key: p.js, typ: p.typ });
102102
typ.jsonToJS = map;
103103
}
@@ -106,7 +106,7 @@ function jsonToJSProps(typ: any): any {
106106

107107
function jsToJSONProps(typ: any): any {
108108
if (typ.jsToJSON === undefined) {
109-
var map: any = {};
109+
const map: any = {};
110110
typ.props.forEach((p: any) => map[p.js] = { key: p.json, typ: p.typ });
111111
typ.jsToJSON = map;
112112
}
@@ -121,9 +121,9 @@ function transform(val: any, typ: any, getProps: any): any {
121121

122122
function transformUnion(typs: any[], val: any): any {
123123
// val must validate against one typ in typs
124-
var l = typs.length;
125-
for (var i = 0; i < l; i++) {
126-
var typ = typs[i];
124+
const l = typs.length;
125+
for (let i = 0; i < l; i++) {
126+
const typ = typs[i];
127127
try {
128128
return transform(val, typ, getProps);
129129
} catch (_) {}
@@ -157,7 +157,7 @@ function transform(val: any, typ: any, getProps: any): any {
157157
if (val === null || typeof val !== "object" || Array.isArray(val)) {
158158
return invalidValue("object", val);
159159
}
160-
var result: any = {};
160+
const result: any = {};
161161
Object.getOwnPropertyNames(props).forEach(key => {
162162
const prop = props[key];
163163
const v = Object.prototype.hasOwnProperty.call(val, key) ? val[key] : undefined;

src/typings/terminal.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,7 @@ export enum ServiceProfilesType {
989989
}
990990

991991
export interface SaleToAcquirerData {
992-
applicationInfo?: ApplicationInfo
992+
applicationInfo?: ApplicationInfo;
993993
}
994994

995995
export enum TerminalEnvironmentType {
@@ -3861,7 +3861,7 @@ function invalidValue(typ: any, val: any): never {
38613861

38623862
function jsonToJSProps(typ: any): any {
38633863
if (typ.jsonToJS === undefined) {
3864-
var map: any = {};
3864+
const map: any = {};
38653865
typ.props.forEach((p: any) => map[p.json] = { key: p.js, typ: p.typ });
38663866
typ.jsonToJS = map;
38673867
}
@@ -3870,7 +3870,7 @@ function jsonToJSProps(typ: any): any {
38703870

38713871
function jsToJSONProps(typ: any): any {
38723872
if (typ.jsToJSON === undefined) {
3873-
var map: any = {};
3873+
const map: any = {};
38743874
typ.props.forEach((p: any) => map[p.js] = { key: p.json, typ: p.typ });
38753875
typ.jsToJSON = map;
38763876
}
@@ -3885,9 +3885,9 @@ function transform(val: any, typ: any, getProps: any): any {
38853885

38863886
function transformUnion(typs: any[], val: any): any {
38873887
// val must validate against one typ in typs
3888-
var l = typs.length;
3889-
for (var i = 0; i < l; i++) {
3890-
var typ = typs[i];
3888+
const l = typs.length;
3889+
for (let i = 0; i < l; i++) {
3890+
const typ = typs[i];
38913891
try {
38923892
return transform(val, typ, getProps);
38933893
} catch (_) {}
@@ -3921,7 +3921,7 @@ function transform(val: any, typ: any, getProps: any): any {
39213921
if (val === null || typeof val !== "object" || Array.isArray(val)) {
39223922
return invalidValue("object", val);
39233923
}
3924-
var result: any = {};
3924+
const result: any = {};
39253925
Object.getOwnPropertyNames(props).forEach(key => {
39263926
const prop = props[key];
39273927
const v = Object.prototype.hasOwnProperty.call(val, key) ? val[key] : undefined;
File renamed without changes.

0 commit comments

Comments
 (0)