react-native-plaid-link-sdk 12.8.2 → 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 CHANGED
@@ -215,6 +215,7 @@ If migrating from older versions, see the [docs](https://plaid.com/docs/link/rea
215
215
 
216
216
  | Plaid SDK Version | Min React Native Version | Android SDK | Android Min Version | Android Compile Version| iOS SDK | iOS Min Version | Status |
217
217
  |-------------------|--------------------------|-------------|---------------------|------------------------|---------|-----------------|-------------------------------|
218
+ | 12.8.3 | * | [5.5.1+] | 21 | 34 | >=6.4.3 | 14.0 | Active, supports Xcode 16.1.0 |
218
219
  | 12.8.2 | * | [5.5.1+] | 21 | 34 | >=6.4.3 | 14.0 | Active, supports Xcode 16.1.0 |
219
220
  | 12.8.1 | * | [5.5.2+] | 21 | 34 | >=6.4.3 | 14.0 | Active, supports Xcode 16.1.0 |
220
221
  | 12.8.0 | * | [5.5.1+] | 21 | 34 | >=6.4.3 | 14.0 | Active, supports Xcode 16.1.0 |
@@ -3,7 +3,7 @@
3
3
  <application>
4
4
  <meta-data
5
5
  android:name="com.plaid.link.react_native"
6
- android:value="12.8.2" />
6
+ android:value="12.8.3" />
7
7
  </application>
8
8
 
9
9
  </manifest>
@@ -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}`);
package/ios/RNLinksdk.mm CHANGED
@@ -28,7 +28,7 @@ static NSString* const kRNLinkKitVersionConstant = @"version";
28
28
  RCT_EXPORT_MODULE();
29
29
 
30
30
  + (NSString*)sdkVersion {
31
- return @"12.8.2"; // SDK_VERSION
31
+ return @"12.8.3"; // SDK_VERSION
32
32
  }
33
33
 
34
34
  + (NSString*)objCBridgeVersion {
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "react-native-plaid-link-sdk",
3
- "version": "12.8.2",
3
+ "version": "12.8.3",
4
4
  "description": "React Native Plaid Link SDK",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
5
+ "main": "dist/src/index.js",
6
+ "types": "dist/src/index.d.ts",
7
7
  "react-native": "src/index.ts",
8
8
  "files": [
9
9
  "dist/**/*",
@@ -13,7 +13,9 @@
13
13
  "src/**/*"
14
14
  ],
15
15
  "scripts": {
16
- "lint": "eslint \"./**/*.{js,jsx}\" --fix",
16
+ "build": "tsc",
17
+ "check:package": "node scripts/check-package-entrypoints.js",
18
+ "lint": "eslint \"*.js\" \"scripts/**/*.js\" --fix",
17
19
  "prettier": "prettier \"./**/*.{js,jsx}\" --write",
18
20
  "test": "jest"
19
21
  },
@@ -36,7 +38,10 @@
36
38
  "jest": {
37
39
  "testPathIgnorePatterns": [
38
40
  "/node_modules/",
39
- "/example/"
41
+ "/dist/",
42
+ "/example/",
43
+ "/FabricExample/",
44
+ "/exampleReactNative76/"
40
45
  ]
41
46
  },
42
47
  "author": "Plaid",