react-native-plaid-link-sdk 12.8.1 → 12.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/android/src/main/AndroidManifest.xml +2 -3
- package/dist/build/EmbeddedLink/EmbeddedLinkView.d.ts +2 -0
- package/dist/build/EmbeddedLink/EmbeddedLinkView.js +56 -0
- package/dist/build/EmbeddedLink/EmbeddedLinkView.web.d.ts +1 -0
- package/dist/build/EmbeddedLink/EmbeddedLinkView.web.js +2 -0
- package/dist/build/EmbeddedLink/NativeEmbeddedLinkView.d.ts +2 -0
- package/dist/build/EmbeddedLink/NativeEmbeddedLinkView.js +3 -0
- package/dist/build/PlaidEmbeddedSearchView.d.ts +2 -0
- package/dist/build/PlaidEmbeddedSearchView.js +25 -0
- package/dist/build/PlaidLink.d.ts +7 -0
- package/dist/build/PlaidLink.js +137 -0
- package/dist/build/ReactNativePlaidLinkSdk.types.d.ts +108 -0
- package/dist/build/ReactNativePlaidLinkSdk.types.js +469 -0
- package/dist/build/ReactNativePlaidLinkSdkModule.d.ts +2 -0
- package/dist/build/ReactNativePlaidLinkSdkModule.js +4 -0
- package/dist/build/ReactNativePlaidLinkSdkView.d.ts +2 -0
- package/dist/build/ReactNativePlaidLinkSdkView.js +7 -0
- package/dist/build/Types.d.ts +108 -0
- package/dist/{Types.js → build/Types.js} +5 -8
- package/dist/build/fabric/EmbeddedLinkViewNativeComponent.d.ts +2 -0
- package/dist/build/fabric/EmbeddedLinkViewNativeComponent.js +3 -0
- package/dist/build/fabric/NativePlaidLinkModuleAndroid.d.ts +2 -0
- package/dist/build/fabric/NativePlaidLinkModuleAndroid.js +5 -0
- package/dist/build/fabric/NativePlaidLinkModuleiOS.d.ts +2 -0
- package/dist/build/fabric/NativePlaidLinkModuleiOS.js +5 -0
- package/dist/build/fabric/fabricUtils.js +2 -0
- package/dist/build/index.d.ts +14 -0
- package/dist/build/index.js +154 -0
- package/dist/scripts/check-package-entrypoints.d.ts +1 -0
- package/dist/scripts/check-package-entrypoints.js +61 -0
- package/dist/{Types.d.ts → src/Types.d.ts} +2 -1
- package/dist/src/Types.js +463 -0
- package/dist/{fabric → src/fabric}/EmbeddedLinkViewNativeComponent.d.ts +0 -2
- package/dist/src/fabric/fabricUtils.js +1 -0
- package/ios/RNLinksdk.mm +1 -1
- package/package.json +17 -5
- package/src/Types.ts +14 -12
- /package/dist/{fabric/fabricUtils.js → build/fabric/fabricUtils.d.ts} +0 -0
- /package/dist/{EmbeddedLink → src/EmbeddedLink}/EmbeddedLinkView.d.ts +0 -0
- /package/dist/{EmbeddedLink → src/EmbeddedLink}/EmbeddedLinkView.js +0 -0
- /package/dist/{EmbeddedLink → src/EmbeddedLink}/EmbeddedLinkView.web.d.ts +0 -0
- /package/dist/{EmbeddedLink → src/EmbeddedLink}/EmbeddedLinkView.web.js +0 -0
- /package/dist/{EmbeddedLink → src/EmbeddedLink}/NativeEmbeddedLinkView.d.ts +0 -0
- /package/dist/{EmbeddedLink → src/EmbeddedLink}/NativeEmbeddedLinkView.js +0 -0
- /package/dist/{PlaidLink.d.ts → src/PlaidLink.d.ts} +0 -0
- /package/dist/{PlaidLink.js → src/PlaidLink.js} +0 -0
- /package/dist/{__tests__ → src/__tests__}/Types.tests.d.ts +0 -0
- /package/dist/{__tests__ → src/__tests__}/Types.tests.js +0 -0
- /package/dist/{fabric → src/fabric}/EmbeddedLinkViewNativeComponent.js +0 -0
- /package/dist/{fabric → src/fabric}/NativePlaidLinkModuleAndroid.d.ts +0 -0
- /package/dist/{fabric → src/fabric}/NativePlaidLinkModuleAndroid.js +0 -0
- /package/dist/{fabric → src/fabric}/NativePlaidLinkModuleiOS.d.ts +0 -0
- /package/dist/{fabric → src/fabric}/NativePlaidLinkModuleiOS.js +0 -0
- /package/dist/{fabric → src/fabric}/fabricUtils.d.ts +0 -0
- /package/dist/{index.d.ts → src/index.d.ts} +0 -0
- /package/dist/{index.js → src/index.js} +0 -0
|
@@ -100,7 +100,7 @@ export var LinkAccountSubtypes;
|
|
|
100
100
|
LinkAccountSubtypes["UTMA"] = "utma";
|
|
101
101
|
LinkAccountSubtypes["VARIABLE_ANNUITY"] = "variable annuity";
|
|
102
102
|
})(LinkAccountSubtypes || (LinkAccountSubtypes = {}));
|
|
103
|
-
class LinkAccountSubtypeCredit {
|
|
103
|
+
export class LinkAccountSubtypeCredit {
|
|
104
104
|
constructor(type, subtype) {
|
|
105
105
|
this.type = type;
|
|
106
106
|
this.subtype = subtype;
|
|
@@ -109,8 +109,7 @@ class LinkAccountSubtypeCredit {
|
|
|
109
109
|
LinkAccountSubtypeCredit.ALL = new LinkAccountSubtypeCredit(LinkAccountType.CREDIT, LinkAccountSubtypes.ALL);
|
|
110
110
|
LinkAccountSubtypeCredit.CREDIT_CARD = new LinkAccountSubtypeCredit(LinkAccountType.CREDIT, LinkAccountSubtypes.CREDIT_CARD);
|
|
111
111
|
LinkAccountSubtypeCredit.PAYPAL = new LinkAccountSubtypeCredit(LinkAccountType.CREDIT, LinkAccountSubtypes.PAYPAL);
|
|
112
|
-
export
|
|
113
|
-
class LinkAccountSubtypeDepository {
|
|
112
|
+
export class LinkAccountSubtypeDepository {
|
|
114
113
|
constructor(type, subtype) {
|
|
115
114
|
this.type = type;
|
|
116
115
|
this.subtype = subtype;
|
|
@@ -126,8 +125,7 @@ LinkAccountSubtypeDepository.MONEY_MARKET = new LinkAccountSubtypeDepository(Lin
|
|
|
126
125
|
LinkAccountSubtypeDepository.PAYPAL = new LinkAccountSubtypeDepository(LinkAccountType.DEPOSITORY, LinkAccountSubtypes.PAYPAL);
|
|
127
126
|
LinkAccountSubtypeDepository.PREPAID = new LinkAccountSubtypeDepository(LinkAccountType.DEPOSITORY, LinkAccountSubtypes.PREPAID);
|
|
128
127
|
LinkAccountSubtypeDepository.SAVINGS = new LinkAccountSubtypeDepository(LinkAccountType.DEPOSITORY, LinkAccountSubtypes.SAVINGS);
|
|
129
|
-
export
|
|
130
|
-
class LinkAccountSubtypeInvestment {
|
|
128
|
+
export class LinkAccountSubtypeInvestment {
|
|
131
129
|
constructor(type, subtype) {
|
|
132
130
|
this.type = type;
|
|
133
131
|
this.subtype = subtype;
|
|
@@ -178,8 +176,7 @@ LinkAccountSubtypeInvestment.TRUST = new LinkAccountSubtypeInvestment(LinkAccoun
|
|
|
178
176
|
LinkAccountSubtypeInvestment.UGMA = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.UGMA);
|
|
179
177
|
LinkAccountSubtypeInvestment.UTMA = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.UTMA);
|
|
180
178
|
LinkAccountSubtypeInvestment.VARIABLE_ANNUITY = new LinkAccountSubtypeInvestment(LinkAccountType.INVESTMENT, LinkAccountSubtypes.VARIABLE_ANNUITY);
|
|
181
|
-
export
|
|
182
|
-
class LinkAccountSubtypeLoan {
|
|
179
|
+
export class LinkAccountSubtypeLoan {
|
|
183
180
|
constructor(type, subtype) {
|
|
184
181
|
this.type = type;
|
|
185
182
|
this.subtype = subtype;
|
|
@@ -197,7 +194,6 @@ LinkAccountSubtypeLoan.LOAN = new LinkAccountSubtypeLoan(LinkAccountType.CREDIT,
|
|
|
197
194
|
LinkAccountSubtypeLoan.MORTGAGE = new LinkAccountSubtypeLoan(LinkAccountType.CREDIT, LinkAccountSubtypes.MORTGAGE);
|
|
198
195
|
LinkAccountSubtypeLoan.OVERDRAFT = new LinkAccountSubtypeLoan(LinkAccountType.CREDIT, LinkAccountSubtypes.OVERDRAFT);
|
|
199
196
|
LinkAccountSubtypeLoan.STUDENT = new LinkAccountSubtypeLoan(LinkAccountType.CREDIT, LinkAccountSubtypes.STUDENT);
|
|
200
|
-
export { LinkAccountSubtypeLoan };
|
|
201
197
|
export class LinkAccountSubtypeUnknown {
|
|
202
198
|
constructor(type, subtype) {
|
|
203
199
|
this.type = type;
|
|
@@ -463,3 +459,4 @@ export var FinanceKitErrorType;
|
|
|
463
459
|
FinanceKitErrorType[FinanceKitErrorType["Unknown"] = 4] = "Unknown";
|
|
464
460
|
})(FinanceKitErrorType || (FinanceKitErrorType = {}));
|
|
465
461
|
;
|
|
462
|
+
//# sourceMappingURL=Types.js.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// we use Object type because methods on the native side use NSDictionary and ReadableMap
|
|
2
|
+
// and we want to stay compatible with those
|
|
3
|
+
import { TurboModuleRegistry } from 'react-native';
|
|
4
|
+
export default TurboModuleRegistry.get('PlaidAndroid');
|
|
5
|
+
//# sourceMappingURL=NativePlaidLinkModuleAndroid.js.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// we use Object type because methods on the native side use NSDictionary and ReadableMap
|
|
2
|
+
// and we want to stay compatible with those
|
|
3
|
+
import { TurboModuleRegistry } from 'react-native';
|
|
4
|
+
export default TurboModuleRegistry.get('RNLinksdk');
|
|
5
|
+
//# sourceMappingURL=NativePlaidLinkModuleiOS.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export function createPlaidLinkSession(config: any): Promise<{
|
|
2
|
+
open: (fullScreen?: boolean) => Promise<void>;
|
|
3
|
+
}>;
|
|
4
|
+
export function createPlaidLayerSession(config: any): Promise<{
|
|
5
|
+
open: () => Promise<void>;
|
|
6
|
+
submit: (data: any) => Promise<void>;
|
|
7
|
+
}>;
|
|
8
|
+
export function createPlaidHeadlessSession(config: any): Promise<{
|
|
9
|
+
start: () => Promise<void>;
|
|
10
|
+
}>;
|
|
11
|
+
export function syncFinanceKit(config: any): Promise<void>;
|
|
12
|
+
export { PlaidEmbeddedSearchView } from "./PlaidEmbeddedSearchView";
|
|
13
|
+
export { default } from "./ReactNativePlaidLinkSdkModule";
|
|
14
|
+
export * from "./ReactNativePlaidLinkSdk.types";
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { Platform } from "react-native";
|
|
11
|
+
import { FinanceKitSyncBehavior, } from "./ReactNativePlaidLinkSdk.types";
|
|
12
|
+
import NativePlaidModule from "./ReactNativePlaidLinkSdkModule";
|
|
13
|
+
let successSub = null;
|
|
14
|
+
let exitSub = null;
|
|
15
|
+
let eventSub = null;
|
|
16
|
+
function cleanupListeners() {
|
|
17
|
+
successSub === null || successSub === void 0 ? void 0 : successSub.remove();
|
|
18
|
+
exitSub === null || exitSub === void 0 ? void 0 : exitSub.remove();
|
|
19
|
+
eventSub === null || eventSub === void 0 ? void 0 : eventSub.remove();
|
|
20
|
+
successSub = null;
|
|
21
|
+
exitSub = null;
|
|
22
|
+
eventSub = null;
|
|
23
|
+
}
|
|
24
|
+
export function createPlaidLinkSession(config) {
|
|
25
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
+
try {
|
|
27
|
+
cleanupListeners();
|
|
28
|
+
successSub = NativePlaidModule.addListener("onSuccess", (success) => {
|
|
29
|
+
config.onSuccess(success);
|
|
30
|
+
cleanupListeners();
|
|
31
|
+
});
|
|
32
|
+
exitSub = NativePlaidModule.addListener("onExit", (exit) => {
|
|
33
|
+
config.onExit(exit);
|
|
34
|
+
cleanupListeners();
|
|
35
|
+
});
|
|
36
|
+
eventSub = NativePlaidModule.addListener("onEvent", (event) => {
|
|
37
|
+
config.onEvent(event);
|
|
38
|
+
});
|
|
39
|
+
yield NativePlaidModule.createPlaidLinkSession(config.token);
|
|
40
|
+
console.log("[PlaidLink] createPlaidLinkSession - returning session");
|
|
41
|
+
return {
|
|
42
|
+
open: (fullScreen = false) => {
|
|
43
|
+
console.log("[PlaidLink] open called", fullScreen);
|
|
44
|
+
return NativePlaidModule.openLinkSession(fullScreen);
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
catch (e) {
|
|
49
|
+
console.error("[PlaidLink] createPlaidLinkSession failed:", e);
|
|
50
|
+
throw e;
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
export function createPlaidLayerSession(config) {
|
|
55
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
+
try {
|
|
57
|
+
cleanupListeners();
|
|
58
|
+
console.log("[PlaidLink] createPlaidLayerSession - setting up listeners");
|
|
59
|
+
console.log("[PlaidLink] onEvent callback provided:", typeof config.onEvent);
|
|
60
|
+
successSub = NativePlaidModule.addListener("onSuccess", (success) => {
|
|
61
|
+
console.log("[PlaidLink] JS received onSuccess event");
|
|
62
|
+
config.onSuccess(success);
|
|
63
|
+
cleanupListeners();
|
|
64
|
+
});
|
|
65
|
+
exitSub = NativePlaidModule.addListener("onExit", (exit) => {
|
|
66
|
+
var _a;
|
|
67
|
+
console.log("[PlaidLink] JS received onExit event");
|
|
68
|
+
(_a = config.onExit) === null || _a === void 0 ? void 0 : _a.call(config, exit);
|
|
69
|
+
cleanupListeners();
|
|
70
|
+
});
|
|
71
|
+
eventSub = NativePlaidModule.addListener("onEvent", (event) => {
|
|
72
|
+
var _a;
|
|
73
|
+
console.log("[PlaidLink] JS received onEvent:", event.eventName);
|
|
74
|
+
(_a = config.onEvent) === null || _a === void 0 ? void 0 : _a.call(config, event);
|
|
75
|
+
});
|
|
76
|
+
console.log("[PlaidLink] Listeners registered, creating native session");
|
|
77
|
+
yield NativePlaidModule.createPlaidLayerSession(config.token);
|
|
78
|
+
console.log("[PlaidLink] createPlaidLayerSession - returning session");
|
|
79
|
+
return {
|
|
80
|
+
open: () => {
|
|
81
|
+
console.log("[PlaidLink] layer open called");
|
|
82
|
+
return NativePlaidModule.openLayerSession();
|
|
83
|
+
},
|
|
84
|
+
submit: (data) => {
|
|
85
|
+
console.log("[PlaidLink] layer submit called", data);
|
|
86
|
+
return NativePlaidModule.submitLayerData(data.phoneNumber, data.dateOfBirth, data.params);
|
|
87
|
+
},
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
catch (e) {
|
|
91
|
+
console.error("[PlaidLink] createPlaidLayerSession failed:", e);
|
|
92
|
+
throw e;
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
export function createPlaidHeadlessSession(config) {
|
|
97
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
98
|
+
try {
|
|
99
|
+
cleanupListeners();
|
|
100
|
+
console.log("[PlaidLink] createPlaidHeadlessSession - setting up listeners");
|
|
101
|
+
successSub = NativePlaidModule.addListener("onSuccess", (success) => {
|
|
102
|
+
console.log("[PlaidLink] JS received onSuccess event");
|
|
103
|
+
config.onSuccess(success);
|
|
104
|
+
cleanupListeners();
|
|
105
|
+
});
|
|
106
|
+
exitSub = NativePlaidModule.addListener("onExit", (exit) => {
|
|
107
|
+
console.log("[PlaidLink] JS received onExit event");
|
|
108
|
+
config.onExit(exit);
|
|
109
|
+
cleanupListeners();
|
|
110
|
+
});
|
|
111
|
+
eventSub = NativePlaidModule.addListener("onEvent", (event) => {
|
|
112
|
+
console.log("[PlaidLink] JS received onEvent:", event.eventName);
|
|
113
|
+
config.onEvent(event);
|
|
114
|
+
});
|
|
115
|
+
console.log("[PlaidLink] Listeners registered, creating native headless session");
|
|
116
|
+
yield NativePlaidModule.createPlaidHeadlessSession(config.token);
|
|
117
|
+
console.log("[PlaidLink] createPlaidHeadlessSession - returning session");
|
|
118
|
+
if (config.onLoad) {
|
|
119
|
+
config.onLoad();
|
|
120
|
+
}
|
|
121
|
+
return {
|
|
122
|
+
start: () => {
|
|
123
|
+
console.log("[PlaidLink] headless start called");
|
|
124
|
+
return NativePlaidModule.startHeadlessSession();
|
|
125
|
+
},
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
catch (e) {
|
|
129
|
+
console.error("[PlaidLink] createPlaidHeadlessSession failed:", e);
|
|
130
|
+
throw e;
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
export function syncFinanceKit(config) {
|
|
135
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
136
|
+
var _a, _b;
|
|
137
|
+
if (Platform.OS === "android") {
|
|
138
|
+
throw new Error("FinanceKit is only available on iOS");
|
|
139
|
+
}
|
|
140
|
+
try {
|
|
141
|
+
console.log("[PlaidLink] syncFinanceKit called");
|
|
142
|
+
yield NativePlaidModule.syncFinanceKit(config.token, (_a = config.requestAuthorizationIfNeeded) !== null && _a !== void 0 ? _a : true, (_b = config.syncBehavior) !== null && _b !== void 0 ? _b : FinanceKitSyncBehavior.LIVE);
|
|
143
|
+
console.log("[PlaidLink] syncFinanceKit completed successfully");
|
|
144
|
+
}
|
|
145
|
+
catch (e) {
|
|
146
|
+
console.error("[PlaidLink] syncFinanceKit failed:", e);
|
|
147
|
+
throw e;
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
export { PlaidEmbeddedSearchView, } from "./PlaidEmbeddedSearchView";
|
|
152
|
+
export { default } from "./ReactNativePlaidLinkSdkModule";
|
|
153
|
+
export * from "./ReactNativePlaidLinkSdk.types";
|
|
154
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const { execFileSync } = require('child_process');
|
|
3
|
+
const fs = require('fs');
|
|
4
|
+
const os = require('os');
|
|
5
|
+
const path = require('path');
|
|
6
|
+
const root = path.resolve(__dirname, '..');
|
|
7
|
+
const packageJsonPath = path.join(root, 'package.json');
|
|
8
|
+
const packageJson = require(packageJsonPath);
|
|
9
|
+
function fail(message) {
|
|
10
|
+
console.error(`Package entrypoint check failed: ${message}`);
|
|
11
|
+
process.exit(1);
|
|
12
|
+
}
|
|
13
|
+
function assertPackageFieldExists(fieldName) {
|
|
14
|
+
const fieldValue = packageJson[fieldName];
|
|
15
|
+
if (typeof fieldValue !== 'string' || fieldValue.length === 0) {
|
|
16
|
+
fail(`package.json field "${fieldName}" must be a non-empty string.`);
|
|
17
|
+
}
|
|
18
|
+
const absolutePath = path.join(root, fieldValue);
|
|
19
|
+
if (!fs.existsSync(absolutePath)) {
|
|
20
|
+
fail(`package.json field "${fieldName}" points to a missing file: ${fieldValue}`);
|
|
21
|
+
}
|
|
22
|
+
return fieldValue;
|
|
23
|
+
}
|
|
24
|
+
const main = assertPackageFieldExists('main');
|
|
25
|
+
const types = assertPackageFieldExists('types');
|
|
26
|
+
try {
|
|
27
|
+
const resolved = require.resolve(root);
|
|
28
|
+
const expected = path.join(root, main);
|
|
29
|
+
if (resolved !== expected) {
|
|
30
|
+
fail(`require.resolve('.') resolved to ${path.relative(root, resolved)}, expected ${main}`);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
catch (error) {
|
|
34
|
+
fail(`require.resolve('.') failed: ${error.message}`);
|
|
35
|
+
}
|
|
36
|
+
let packOutput;
|
|
37
|
+
try {
|
|
38
|
+
packOutput = execFileSync('npm', ['pack', '--dry-run', '--json'], {
|
|
39
|
+
cwd: root,
|
|
40
|
+
encoding: 'utf8',
|
|
41
|
+
env: Object.assign(Object.assign({}, process.env), { npm_config_cache: path.join(os.tmpdir(), 'react-native-plaid-link-sdk-npm-cache') }),
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
catch (error) {
|
|
45
|
+
fail(`npm pack --dry-run --json failed:\n${error.stderr || error.message}`);
|
|
46
|
+
}
|
|
47
|
+
let packResult;
|
|
48
|
+
try {
|
|
49
|
+
packResult = JSON.parse(packOutput);
|
|
50
|
+
}
|
|
51
|
+
catch (error) {
|
|
52
|
+
fail(`npm pack did not return valid JSON: ${error.message}`);
|
|
53
|
+
}
|
|
54
|
+
const packedFiles = (packResult[0] && packResult[0].files) || [];
|
|
55
|
+
const files = new Set(packedFiles.map(file => file.path));
|
|
56
|
+
for (const entrypoint of [main, types]) {
|
|
57
|
+
if (!files.has(entrypoint)) {
|
|
58
|
+
fail(`packed package does not include ${entrypoint}`);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
console.log(`Package entrypoints are valid: ${main}, ${types}`);
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
interface CommonPlaidLinkOptions {
|
|
3
2
|
logLevel?: LinkLogLevel;
|
|
4
3
|
extras?: Record<string, any>;
|
|
@@ -170,6 +169,8 @@ export declare class LinkAccountSubtypeInvestment implements LinkAccountSubtype
|
|
|
170
169
|
static readonly SARSEP: LinkAccountSubtypeInvestment;
|
|
171
170
|
static readonly SEP_IRA: LinkAccountSubtypeInvestment;
|
|
172
171
|
static readonly SIMPLE_IRA: LinkAccountSubtypeInvestment;
|
|
172
|
+
static readonly SIPP: LinkAccountSubtypeInvestment;
|
|
173
|
+
/** @deprecated Misspelling of SIPP. Use LinkAccountSubtypeInvestment.SIPP instead. */
|
|
173
174
|
static readonly SIIP: LinkAccountSubtypeInvestment;
|
|
174
175
|
static readonly STOCK_PLAN: LinkAccountSubtypeInvestment;
|
|
175
176
|
static readonly TFSA: LinkAccountSubtypeInvestment;
|