@expo/fingerprint 0.0.1 → 0.0.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.
@@ -1,197 +1,197 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`getHashSourcesAsync - managed project should match snapshot 1`] = `
4
- Array [
5
- Object {
4
+ [
5
+ {
6
6
  "filePath": "node_modules/expo/android",
7
- "reasons": Array [
7
+ "reasons": [
8
8
  "expoAutolinkingAndroid",
9
9
  ],
10
10
  "type": "dir",
11
11
  },
12
- Object {
12
+ {
13
13
  "filePath": "node_modules/expo-application/android",
14
- "reasons": Array [
14
+ "reasons": [
15
15
  "expoAutolinkingAndroid",
16
16
  ],
17
17
  "type": "dir",
18
18
  },
19
- Object {
19
+ {
20
20
  "filePath": "node_modules/expo-constants/android",
21
- "reasons": Array [
21
+ "reasons": [
22
22
  "expoAutolinkingAndroid",
23
23
  ],
24
24
  "type": "dir",
25
25
  },
26
- Object {
26
+ {
27
27
  "filePath": "node_modules/expo-error-recovery/android",
28
- "reasons": Array [
28
+ "reasons": [
29
29
  "expoAutolinkingAndroid",
30
30
  ],
31
31
  "type": "dir",
32
32
  },
33
- Object {
33
+ {
34
34
  "filePath": "node_modules/expo-file-system/android",
35
- "reasons": Array [
35
+ "reasons": [
36
36
  "expoAutolinkingAndroid",
37
37
  ],
38
38
  "type": "dir",
39
39
  },
40
- Object {
40
+ {
41
41
  "filePath": "node_modules/expo-font/android",
42
- "reasons": Array [
42
+ "reasons": [
43
43
  "expoAutolinkingAndroid",
44
44
  ],
45
45
  "type": "dir",
46
46
  },
47
- Object {
47
+ {
48
48
  "filePath": "node_modules/expo-keep-awake/android",
49
- "reasons": Array [
49
+ "reasons": [
50
50
  "expoAutolinkingAndroid",
51
51
  ],
52
52
  "type": "dir",
53
53
  },
54
- Object {
54
+ {
55
55
  "filePath": "node_modules/expo-modules-core/android",
56
- "reasons": Array [
56
+ "reasons": [
57
57
  "expoAutolinkingAndroid",
58
58
  ],
59
59
  "type": "dir",
60
60
  },
61
- Object {
62
- "contents": "{\\"modules\\":[{\\"packageName\\":\\"expo\\",\\"packageVersion\\":\\"47.0.8\\",\\"projects\\":[{\\"name\\":\\"expo\\",\\"sourceDir\\":\\"node_modules/expo/android\\"}],\\"modules\\":[]},{\\"packageName\\":\\"expo-application\\",\\"packageVersion\\":\\"5.0.1\\",\\"projects\\":[{\\"name\\":\\"expo-application\\",\\"sourceDir\\":\\"node_modules/expo-application/android\\"}],\\"modules\\":[]},{\\"packageName\\":\\"expo-constants\\",\\"packageVersion\\":\\"14.0.2\\",\\"projects\\":[{\\"name\\":\\"expo-constants\\",\\"sourceDir\\":\\"node_modules/expo-constants/android\\"}],\\"modules\\":[]},{\\"packageName\\":\\"expo-error-recovery\\",\\"packageVersion\\":\\"4.0.1\\",\\"projects\\":[{\\"name\\":\\"expo-error-recovery\\",\\"sourceDir\\":\\"node_modules/expo-error-recovery/android\\"}],\\"modules\\":[]},{\\"packageName\\":\\"expo-file-system\\",\\"packageVersion\\":\\"15.1.1\\",\\"projects\\":[{\\"name\\":\\"expo-file-system\\",\\"sourceDir\\":\\"node_modules/expo-file-system/android\\"}],\\"modules\\":[]},{\\"packageName\\":\\"expo-font\\",\\"packageVersion\\":\\"11.0.1\\",\\"projects\\":[{\\"name\\":\\"expo-font\\",\\"sourceDir\\":\\"node_modules/expo-font/android\\"}],\\"modules\\":[]},{\\"packageName\\":\\"expo-keep-awake\\",\\"packageVersion\\":\\"11.0.1\\",\\"projects\\":[{\\"name\\":\\"expo-keep-awake\\",\\"sourceDir\\":\\"node_modules/expo-keep-awake/android\\"}],\\"modules\\":[]},{\\"packageName\\":\\"expo-modules-core\\",\\"packageVersion\\":\\"1.0.3\\",\\"projects\\":[{\\"name\\":\\"expo-modules-core\\",\\"sourceDir\\":\\"node_modules/expo-modules-core/android\\"}],\\"modules\\":[]}]}",
61
+ {
62
+ "contents": "{"modules":[{"packageName":"expo","packageVersion":"47.0.8","projects":[{"name":"expo","sourceDir":"node_modules/expo/android"}],"modules":[]},{"packageName":"expo-application","packageVersion":"5.0.1","projects":[{"name":"expo-application","sourceDir":"node_modules/expo-application/android"}],"modules":[]},{"packageName":"expo-constants","packageVersion":"14.0.2","projects":[{"name":"expo-constants","sourceDir":"node_modules/expo-constants/android"}],"modules":[]},{"packageName":"expo-error-recovery","packageVersion":"4.0.1","projects":[{"name":"expo-error-recovery","sourceDir":"node_modules/expo-error-recovery/android"}],"modules":[]},{"packageName":"expo-file-system","packageVersion":"15.1.1","projects":[{"name":"expo-file-system","sourceDir":"node_modules/expo-file-system/android"}],"modules":[]},{"packageName":"expo-font","packageVersion":"11.0.1","projects":[{"name":"expo-font","sourceDir":"node_modules/expo-font/android"}],"modules":[]},{"packageName":"expo-keep-awake","packageVersion":"11.0.1","projects":[{"name":"expo-keep-awake","sourceDir":"node_modules/expo-keep-awake/android"}],"modules":[]},{"packageName":"expo-modules-core","packageVersion":"1.0.3","projects":[{"name":"expo-modules-core","sourceDir":"node_modules/expo-modules-core/android"}],"modules":[]}]}",
63
63
  "id": "expoAutolinkingConfig:android",
64
- "reasons": Array [
64
+ "reasons": [
65
65
  "expoAutolinkingAndroid",
66
66
  ],
67
67
  "type": "contents",
68
68
  },
69
- Object {
69
+ {
70
70
  "filePath": "node_modules/expo",
71
- "reasons": Array [
71
+ "reasons": [
72
72
  "expoAutolinkingIos",
73
73
  ],
74
74
  "type": "dir",
75
75
  },
76
- Object {
76
+ {
77
77
  "filePath": "node_modules/expo-application/ios",
78
- "reasons": Array [
78
+ "reasons": [
79
79
  "expoAutolinkingIos",
80
80
  ],
81
81
  "type": "dir",
82
82
  },
83
- Object {
83
+ {
84
84
  "filePath": "node_modules/expo-constants/ios",
85
- "reasons": Array [
85
+ "reasons": [
86
86
  "expoAutolinkingIos",
87
87
  ],
88
88
  "type": "dir",
89
89
  },
90
- Object {
90
+ {
91
91
  "filePath": "node_modules/expo-error-recovery/ios",
92
- "reasons": Array [
92
+ "reasons": [
93
93
  "expoAutolinkingIos",
94
94
  ],
95
95
  "type": "dir",
96
96
  },
97
- Object {
97
+ {
98
98
  "filePath": "node_modules/expo-file-system/ios",
99
- "reasons": Array [
99
+ "reasons": [
100
100
  "expoAutolinkingIos",
101
101
  ],
102
102
  "type": "dir",
103
103
  },
104
- Object {
104
+ {
105
105
  "filePath": "node_modules/expo-font/ios",
106
- "reasons": Array [
106
+ "reasons": [
107
107
  "expoAutolinkingIos",
108
108
  ],
109
109
  "type": "dir",
110
110
  },
111
- Object {
111
+ {
112
112
  "filePath": "node_modules/expo-keep-awake/ios",
113
- "reasons": Array [
113
+ "reasons": [
114
114
  "expoAutolinkingIos",
115
115
  ],
116
116
  "type": "dir",
117
117
  },
118
- Object {
118
+ {
119
119
  "filePath": "node_modules/expo-modules-core",
120
- "reasons": Array [
120
+ "reasons": [
121
121
  "expoAutolinkingIos",
122
122
  ],
123
123
  "type": "dir",
124
124
  },
125
- Object {
126
- "contents": "{\\"modules\\":[{\\"packageName\\":\\"expo\\",\\"packageVersion\\":\\"47.0.8\\",\\"pods\\":[{\\"podName\\":\\"Expo\\",\\"podspecDir\\":\\"node_modules/expo\\"}],\\"swiftModuleNames\\":[\\"Expo\\"],\\"modules\\":[],\\"appDelegateSubscribers\\":[],\\"reactDelegateHandlers\\":[],\\"debugOnly\\":false},{\\"packageName\\":\\"expo-application\\",\\"packageVersion\\":\\"5.0.1\\",\\"pods\\":[{\\"podName\\":\\"EXApplication\\",\\"podspecDir\\":\\"node_modules/expo-application/ios\\"}],\\"swiftModuleNames\\":[\\"EXApplication\\"],\\"modules\\":[],\\"appDelegateSubscribers\\":[],\\"reactDelegateHandlers\\":[],\\"debugOnly\\":false},{\\"packageName\\":\\"expo-constants\\",\\"packageVersion\\":\\"14.0.2\\",\\"pods\\":[{\\"podName\\":\\"EXConstants\\",\\"podspecDir\\":\\"node_modules/expo-constants/ios\\"}],\\"swiftModuleNames\\":[\\"EXConstants\\"],\\"modules\\":[],\\"appDelegateSubscribers\\":[],\\"reactDelegateHandlers\\":[],\\"debugOnly\\":false},{\\"packageName\\":\\"expo-error-recovery\\",\\"packageVersion\\":\\"4.0.1\\",\\"pods\\":[{\\"podName\\":\\"EXErrorRecovery\\",\\"podspecDir\\":\\"node_modules/expo-error-recovery/ios\\"}],\\"swiftModuleNames\\":[\\"EXErrorRecovery\\"],\\"modules\\":[],\\"appDelegateSubscribers\\":[],\\"reactDelegateHandlers\\":[],\\"debugOnly\\":false},{\\"packageName\\":\\"expo-file-system\\",\\"packageVersion\\":\\"15.1.1\\",\\"pods\\":[{\\"podName\\":\\"EXFileSystem\\",\\"podspecDir\\":\\"node_modules/expo-file-system/ios\\"}],\\"swiftModuleNames\\":[\\"EXFileSystem\\"],\\"modules\\":[],\\"appDelegateSubscribers\\":[],\\"reactDelegateHandlers\\":[],\\"debugOnly\\":false},{\\"packageName\\":\\"expo-font\\",\\"packageVersion\\":\\"11.0.1\\",\\"pods\\":[{\\"podName\\":\\"EXFont\\",\\"podspecDir\\":\\"node_modules/expo-font/ios\\"}],\\"swiftModuleNames\\":[\\"EXFont\\"],\\"modules\\":[],\\"appDelegateSubscribers\\":[],\\"reactDelegateHandlers\\":[],\\"debugOnly\\":false},{\\"packageName\\":\\"expo-keep-awake\\",\\"packageVersion\\":\\"11.0.1\\",\\"pods\\":[{\\"podName\\":\\"ExpoKeepAwake\\",\\"podspecDir\\":\\"node_modules/expo-keep-awake/ios\\"}],\\"swiftModuleNames\\":[\\"ExpoKeepAwake\\"],\\"modules\\":[\\"KeepAwakeModule\\"],\\"appDelegateSubscribers\\":[],\\"reactDelegateHandlers\\":[],\\"debugOnly\\":false},{\\"packageName\\":\\"expo-modules-core\\",\\"packageVersion\\":\\"1.0.3\\",\\"pods\\":[{\\"podName\\":\\"ExpoModulesCore\\",\\"podspecDir\\":\\"node_modules/expo-modules-core\\"}],\\"swiftModuleNames\\":[\\"ExpoModulesCore\\"],\\"modules\\":[],\\"appDelegateSubscribers\\":[],\\"reactDelegateHandlers\\":[],\\"debugOnly\\":false}]}",
125
+ {
126
+ "contents": "{"modules":[{"packageName":"expo","packageVersion":"47.0.8","pods":[{"podName":"Expo","podspecDir":"node_modules/expo"}],"swiftModuleNames":["Expo"],"modules":[],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false},{"packageName":"expo-application","packageVersion":"5.0.1","pods":[{"podName":"EXApplication","podspecDir":"node_modules/expo-application/ios"}],"swiftModuleNames":["EXApplication"],"modules":[],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false},{"packageName":"expo-constants","packageVersion":"14.0.2","pods":[{"podName":"EXConstants","podspecDir":"node_modules/expo-constants/ios"}],"swiftModuleNames":["EXConstants"],"modules":[],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false},{"packageName":"expo-error-recovery","packageVersion":"4.0.1","pods":[{"podName":"EXErrorRecovery","podspecDir":"node_modules/expo-error-recovery/ios"}],"swiftModuleNames":["EXErrorRecovery"],"modules":[],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false},{"packageName":"expo-file-system","packageVersion":"15.1.1","pods":[{"podName":"EXFileSystem","podspecDir":"node_modules/expo-file-system/ios"}],"swiftModuleNames":["EXFileSystem"],"modules":[],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false},{"packageName":"expo-font","packageVersion":"11.0.1","pods":[{"podName":"EXFont","podspecDir":"node_modules/expo-font/ios"}],"swiftModuleNames":["EXFont"],"modules":[],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false},{"packageName":"expo-keep-awake","packageVersion":"11.0.1","pods":[{"podName":"ExpoKeepAwake","podspecDir":"node_modules/expo-keep-awake/ios"}],"swiftModuleNames":["ExpoKeepAwake"],"modules":["KeepAwakeModule"],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false},{"packageName":"expo-modules-core","packageVersion":"1.0.3","pods":[{"podName":"ExpoModulesCore","podspecDir":"node_modules/expo-modules-core"}],"swiftModuleNames":["ExpoModulesCore"],"modules":[],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false}]}",
127
127
  "id": "expoAutolinkingConfig:ios",
128
- "reasons": Array [
128
+ "reasons": [
129
129
  "expoAutolinkingIos",
130
130
  ],
131
131
  "type": "contents",
132
132
  },
133
- Object {
133
+ {
134
134
  "filePath": "app.json",
135
- "reasons": Array [
135
+ "reasons": [
136
136
  "expoConfig",
137
137
  ],
138
138
  "type": "file",
139
139
  },
140
- Object {
140
+ {
141
141
  "filePath": "./assets/icon.png",
142
- "reasons": Array [
142
+ "reasons": [
143
143
  "expoConfigExternalFile",
144
144
  ],
145
145
  "type": "file",
146
146
  },
147
- Object {
147
+ {
148
148
  "filePath": "./assets/adaptive-icon.png",
149
- "reasons": Array [
149
+ "reasons": [
150
150
  "expoConfigExternalFile",
151
151
  ],
152
152
  "type": "file",
153
153
  },
154
- Object {
154
+ {
155
155
  "filePath": "./assets/splash.png",
156
- "reasons": Array [
156
+ "reasons": [
157
157
  "expoConfigExternalFile",
158
158
  ],
159
159
  "type": "file",
160
160
  },
161
- Object {
161
+ {
162
162
  "filePath": ".gitignore",
163
- "reasons": Array [
163
+ "reasons": [
164
164
  "bareGitIgnore",
165
165
  ],
166
166
  "type": "file",
167
167
  },
168
- Object {
169
- "contents": "{\\"start\\":\\"expo start\\",\\"android\\":\\"expo start --android\\",\\"ios\\":\\"expo start --ios\\",\\"web\\":\\"expo start --web\\"}",
168
+ {
169
+ "contents": "{"start":"expo start","android":"expo start --android","ios":"expo start --ios","web":"expo start --web"}",
170
170
  "id": "packageJson:scripts",
171
- "reasons": Array [
171
+ "reasons": [
172
172
  "packageJson:scripts",
173
173
  ],
174
174
  "type": "contents",
175
175
  },
176
- Object {
176
+ {
177
177
  "filePath": "node_modules/expo",
178
- "reasons": Array [
178
+ "reasons": [
179
179
  "bareRncliAutolinking",
180
180
  ],
181
181
  "type": "dir",
182
182
  },
183
- Object {
184
- "contents": "{\\"sourceDir\\":\\"node_modules/expo/android\\",\\"packageImportPath\\":\\"import expo.modules.ExpoModulesPackage;\\",\\"packageInstance\\":\\"new ExpoModulesPackage()\\",\\"buildTypes\\":[],\\"componentDescriptors\\":[],\\"androidMkPath\\":\\"node_modules/expo/android/build/generated/source/codegen/jni/Android.mk\\",\\"cmakeListsPath\\":\\"node_modules/expo/android/build/generated/source/codegen/jni/CMakeLists.txt\\"}",
183
+ {
184
+ "contents": "{"sourceDir":"node_modules/expo/android","packageImportPath":"import expo.modules.ExpoModulesPackage;","packageInstance":"new ExpoModulesPackage()","buildTypes":[],"componentDescriptors":[],"androidMkPath":"node_modules/expo/android/build/generated/source/codegen/jni/Android.mk","cmakeListsPath":"node_modules/expo/android/build/generated/source/codegen/jni/CMakeLists.txt"}",
185
185
  "id": "rncliAutolinkingConfig:expo:android",
186
- "reasons": Array [
186
+ "reasons": [
187
187
  "bareRncliAutolinking",
188
188
  ],
189
189
  "type": "contents",
190
190
  },
191
- Object {
192
- "contents": "{\\"podspecPath\\":\\"node_modules/expo/Expo.podspec\\",\\"configurations\\":[],\\"scriptPhases\\":[]}",
191
+ {
192
+ "contents": "{"podspecPath":"node_modules/expo/Expo.podspec","configurations":[],"scriptPhases":[]}",
193
193
  "id": "rncliAutolinkingConfig:expo:ios",
194
- "reasons": Array [
194
+ "reasons": [
195
195
  "bareRncliAutolinking",
196
196
  ],
197
197
  "type": "contents",
@@ -100,29 +100,29 @@ describe('managed project test', () => {
100
100
  });
101
101
  const diff = await diffFingerprintChangesAsync(fingerprint, projectRoot);
102
102
  expect(diff).toMatchInlineSnapshot(`
103
- Array [
104
- Object {
103
+ [
104
+ {
105
105
  "filePath": "node_modules/@react-native-community/netinfo",
106
106
  "hash": "9864bf3bf95283fe99774aaeec91965d70f3eab3",
107
- "reasons": Array [
107
+ "reasons": [
108
108
  "bareRncliAutolinking",
109
109
  ],
110
110
  "type": "dir",
111
111
  },
112
- Object {
113
- "contents": "{\\"sourceDir\\":\\"node_modules/@react-native-community/netinfo/android\\",\\"packageImportPath\\":\\"import com.reactnativecommunity.netinfo.NetInfoPackage;\\",\\"packageInstance\\":\\"new NetInfoPackage()\\",\\"buildTypes\\":[],\\"componentDescriptors\\":[],\\"androidMkPath\\":\\"node_modules/@react-native-community/netinfo/android/build/generated/source/codegen/jni/Android.mk\\",\\"cmakeListsPath\\":\\"node_modules/@react-native-community/netinfo/android/build/generated/source/codegen/jni/CMakeLists.txt\\"}",
112
+ {
113
+ "contents": "{"sourceDir":"node_modules/@react-native-community/netinfo/android","packageImportPath":"import com.reactnativecommunity.netinfo.NetInfoPackage;","packageInstance":"new NetInfoPackage()","buildTypes":[],"componentDescriptors":[],"androidMkPath":"node_modules/@react-native-community/netinfo/android/build/generated/source/codegen/jni/Android.mk","cmakeListsPath":"node_modules/@react-native-community/netinfo/android/build/generated/source/codegen/jni/CMakeLists.txt"}",
114
114
  "hash": "cb4dfbb38f9151ecd6621bc9e36055540495c463",
115
115
  "id": "rncliAutolinkingConfig:@react-native-community/netinfo:android",
116
- "reasons": Array [
116
+ "reasons": [
117
117
  "bareRncliAutolinking",
118
118
  ],
119
119
  "type": "contents",
120
120
  },
121
- Object {
122
- "contents": "{\\"podspecPath\\":\\"node_modules/@react-native-community/netinfo/react-native-netinfo.podspec\\",\\"configurations\\":[],\\"scriptPhases\\":[]}",
121
+ {
122
+ "contents": "{"podspecPath":"node_modules/@react-native-community/netinfo/react-native-netinfo.podspec","configurations":[],"scriptPhases":[]}",
123
123
  "hash": "40eebce5caf94df11096238a5a2ca648ea9f242e",
124
124
  "id": "rncliAutolinkingConfig:@react-native-community/netinfo:ios",
125
- "reasons": Array [
125
+ "reasons": [
126
126
  "bareRncliAutolinking",
127
127
  ],
128
128
  "type": "contents",
@@ -2,6 +2,7 @@ const path = require('path');
2
2
 
3
3
  module.exports = {
4
4
  testEnvironment: 'node',
5
+ preset: 'ts-jest',
5
6
  testRegex: '/__tests__/.*(test|spec)\\.[jt]sx?$',
6
7
  watchPlugins: ['jest-watch-typeahead/filename', 'jest-watch-typeahead/testname'],
7
8
  rootDir: path.resolve(__dirname),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo/fingerprint",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "A library to generate a fingerprint from a React Native project",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -45,26 +45,26 @@
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/find-up": "^4.0.0",
48
- "@types/jest": "^26.0.24",
48
+ "@types/jest": "^29.2.1",
49
49
  "@types/rimraf": "^3.0.0",
50
- "eslint": "^8.20.0",
50
+ "eslint": "^8.29.0",
51
51
  "eslint-config-universe": "^11.1.0",
52
- "expo": "^47.0.0",
52
+ "expo": "^48.0.0-beta.0",
53
53
  "glob": "^7.1.7",
54
- "jest": "^26.6.3",
55
- "jest-watch-typeahead": "0.6.4",
54
+ "jest": "^29.2.1",
55
+ "jest-watch-typeahead": "2.2.1",
56
56
  "memfs": "^3.4.12",
57
57
  "rimraf": "^3.0.2",
58
58
  "temp-dir": "^2.0.0",
59
59
  "typescript": "^4.3.5"
60
60
  },
61
61
  "peerDependencies": {
62
- "expo": ">=47.0.0"
62
+ "expo": "48.0.0-beta.1"
63
63
  },
64
64
  "peerDependenciesMeta": {
65
65
  "expo": {
66
66
  "optional": true
67
67
  }
68
68
  },
69
- "gitHead": "d422f8b881cc113962c7c00ce7ea9be75e24caa4"
69
+ "gitHead": "1f8a6a09570fd451378565ca34933018ce48454e"
70
70
  }
@@ -28,11 +28,11 @@ describe(diffFingerprintChangesAsync, () => {
28
28
 
29
29
  const diff = await diffFingerprintChangesAsync(fingerprint, '/app', normalizeOptions());
30
30
  expect(diff).toMatchInlineSnapshot(`
31
- Array [
32
- Object {
31
+ [
32
+ {
33
33
  "filePath": "app.json",
34
34
  "hash": "1fd2d92d50dc1da96b41795046b9ea4e30dd2b48",
35
- "reasons": Array [
35
+ "reasons": [
36
36
  "expoConfig",
37
37
  ],
38
38
  "type": "file",
@@ -60,12 +60,12 @@ describe(diffFingerprintChangesAsync, () => {
60
60
  diff = await diffFingerprintChangesAsync(fingerprint, '/app', normalizeOptions());
61
61
  jest.dontMock('/app/package.json');
62
62
  expect(diff).toMatchInlineSnapshot(`
63
- Array [
64
- Object {
65
- "contents": "{\\"start\\":\\"expo start\\",\\"android\\":\\"expo start --android\\",\\"ios\\":\\"expo start --ios\\",\\"web\\":\\"expo start --web\\",\\"postinstall\\":\\"echo \\\\\\"hello\\\\\\"\\"}",
63
+ [
64
+ {
65
+ "contents": "{"start":"expo start","android":"expo start --android","ios":"expo start --ios","web":"expo start --web","postinstall":"echo \\"hello\\""}",
66
66
  "hash": "47f4d7bae018eb17440153f09977113501eace30",
67
67
  "id": "packageJson:scripts",
68
- "reasons": Array [
68
+ "reasons": [
69
69
  "packageJson:scripts",
70
70
  ],
71
71
  "type": "contents",
@@ -82,11 +82,11 @@ describe(diffFingerprintChangesAsync, () => {
82
82
  vol.writeFileSync('/app/app.json', JSON.stringify(config, null, 2));
83
83
  const diff = await diffFingerprintChangesAsync(fingerprint, '/app', normalizeOptions());
84
84
  expect(diff).toMatchInlineSnapshot(`
85
- Array [
86
- Object {
85
+ [
86
+ {
87
87
  "filePath": "app.json",
88
88
  "hash": "9ff1b51ca9b9435e8b849bcc82e3900d70f0feee",
89
- "reasons": Array [
89
+ "reasons": [
90
90
  "expoConfig",
91
91
  ],
92
92
  "type": "file",
@@ -101,11 +101,11 @@ describe(diffFingerprintChangesAsync, () => {
101
101
  vol.writeFileSync('/app/ios/README.md', '# Adding new file in ios dir');
102
102
  const diff = await diffFingerprintChangesAsync(fingerprint, '/app', normalizeOptions());
103
103
  expect(diff).toMatchInlineSnapshot(`
104
- Array [
105
- Object {
104
+ [
105
+ {
106
106
  "filePath": "ios",
107
107
  "hash": "e4190c0af9142fe4add4842777d9aec713213cd4",
108
- "reasons": Array [
108
+ "reasons": [
109
109
  "bareNativeDir",
110
110
  ],
111
111
  "type": "dir",
@@ -33,22 +33,22 @@ describe(createFingerprintFromSourcesAsync, () => {
33
33
 
34
34
  expect(await createFingerprintFromSourcesAsync(sources, '/app', normalizeOptions()))
35
35
  .toMatchInlineSnapshot(`
36
- Object {
36
+ {
37
37
  "hash": "ec7d81780f735d5e289b27cdcc04a6c99d2621dc",
38
- "sources": Array [
39
- Object {
38
+ "sources": [
39
+ {
40
40
  "contents": "HelloWorld",
41
41
  "hash": "db8ac1c259eb89d4a131b253bacfca5f319d54f2",
42
42
  "id": "foo",
43
- "reasons": Array [
43
+ "reasons": [
44
44
  "foo",
45
45
  ],
46
46
  "type": "contents",
47
47
  },
48
- Object {
48
+ {
49
49
  "filePath": "app.json",
50
50
  "hash": "bf21a9e8fbc5a3846fb05b4fa0859e0917b2202f",
51
- "reasons": Array [
51
+ "reasons": [
52
52
  "expoConfig",
53
53
  ],
54
54
  "type": "file",
@@ -1,26 +1,26 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`getRncliAutolinkingSourcesAsync should contain rn-cli autolinking projects 1`] = `
4
- Array [
5
- Object {
4
+ [
5
+ {
6
6
  "filePath": "node_modules/react-native-reanimated",
7
- "reasons": Array [
7
+ "reasons": [
8
8
  "bareRncliAutolinking",
9
9
  ],
10
10
  "type": "dir",
11
11
  },
12
- Object {
13
- "contents": "{\\"sourceDir\\":\\"node_modules/react-native-reanimated/android\\",\\"packageImportPath\\":\\"import com.swmansion.reanimated.ReanimatedPackage;\\",\\"packageInstance\\":\\"new ReanimatedPackage()\\",\\"buildTypes\\":[],\\"componentDescriptors\\":[],\\"androidMkPath\\":\\"node_modules/react-native-reanimated/android/build/generated/source/codegen/jni/Android.mk\\",\\"cmakeListsPath\\":\\"node_modules/react-native-reanimated/android/build/generated/source/codegen/jni/CMakeLists.txt\\"}",
12
+ {
13
+ "contents": "{"sourceDir":"node_modules/react-native-reanimated/android","packageImportPath":"import com.swmansion.reanimated.ReanimatedPackage;","packageInstance":"new ReanimatedPackage()","buildTypes":[],"componentDescriptors":[],"androidMkPath":"node_modules/react-native-reanimated/android/build/generated/source/codegen/jni/Android.mk","cmakeListsPath":"node_modules/react-native-reanimated/android/build/generated/source/codegen/jni/CMakeLists.txt"}",
14
14
  "id": "rncliAutolinkingConfig:react-native-reanimated:android",
15
- "reasons": Array [
15
+ "reasons": [
16
16
  "bareRncliAutolinking",
17
17
  ],
18
18
  "type": "contents",
19
19
  },
20
- Object {
21
- "contents": "{\\"podspecPath\\":\\"node_modules/react-native-reanimated/RNReanimated.podspec\\",\\"configurations\\":[],\\"scriptPhases\\":[]}",
20
+ {
21
+ "contents": "{"podspecPath":"node_modules/react-native-reanimated/RNReanimated.podspec","configurations":[],"scriptPhases":[]}",
22
22
  "id": "rncliAutolinkingConfig:react-native-reanimated:ios",
23
- "reasons": Array [
23
+ "reasons": [
24
24
  "bareRncliAutolinking",
25
25
  ],
26
26
  "type": "contents",
@@ -1,67 +1,67 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`getExpoAutolinkingSourcesAsync should contain expo autolinking projects 1`] = `
4
- Array [
5
- Object {
4
+ [
5
+ {
6
6
  "filePath": "node_modules/expo/android",
7
- "reasons": Array [
7
+ "reasons": [
8
8
  "expoAutolinkingAndroid",
9
9
  ],
10
10
  "type": "dir",
11
11
  },
12
- Object {
12
+ {
13
13
  "filePath": "node_modules/expo-application/android",
14
- "reasons": Array [
14
+ "reasons": [
15
15
  "expoAutolinkingAndroid",
16
16
  ],
17
17
  "type": "dir",
18
18
  },
19
- Object {
19
+ {
20
20
  "filePath": "node_modules/expo-constants/android",
21
- "reasons": Array [
21
+ "reasons": [
22
22
  "expoAutolinkingAndroid",
23
23
  ],
24
24
  "type": "dir",
25
25
  },
26
- Object {
26
+ {
27
27
  "filePath": "node_modules/expo-error-recovery/android",
28
- "reasons": Array [
28
+ "reasons": [
29
29
  "expoAutolinkingAndroid",
30
30
  ],
31
31
  "type": "dir",
32
32
  },
33
- Object {
33
+ {
34
34
  "filePath": "node_modules/expo-file-system/android",
35
- "reasons": Array [
35
+ "reasons": [
36
36
  "expoAutolinkingAndroid",
37
37
  ],
38
38
  "type": "dir",
39
39
  },
40
- Object {
40
+ {
41
41
  "filePath": "node_modules/expo-font/android",
42
- "reasons": Array [
42
+ "reasons": [
43
43
  "expoAutolinkingAndroid",
44
44
  ],
45
45
  "type": "dir",
46
46
  },
47
- Object {
47
+ {
48
48
  "filePath": "node_modules/expo-keep-awake/android",
49
- "reasons": Array [
49
+ "reasons": [
50
50
  "expoAutolinkingAndroid",
51
51
  ],
52
52
  "type": "dir",
53
53
  },
54
- Object {
54
+ {
55
55
  "filePath": "node_modules/expo-modules-core/android",
56
- "reasons": Array [
56
+ "reasons": [
57
57
  "expoAutolinkingAndroid",
58
58
  ],
59
59
  "type": "dir",
60
60
  },
61
- Object {
62
- "contents": "{\\"modules\\":[{\\"packageName\\":\\"expo\\",\\"packageVersion\\":\\"47.0.3\\",\\"projects\\":[{\\"name\\":\\"expo\\",\\"sourceDir\\":\\"node_modules/expo/android\\"}],\\"modules\\":[]},{\\"packageName\\":\\"expo-application\\",\\"packageVersion\\":\\"5.0.1\\",\\"projects\\":[{\\"name\\":\\"expo-application\\",\\"sourceDir\\":\\"node_modules/expo-application/android\\"}],\\"modules\\":[]},{\\"packageName\\":\\"expo-constants\\",\\"packageVersion\\":\\"14.0.2\\",\\"projects\\":[{\\"name\\":\\"expo-constants\\",\\"sourceDir\\":\\"node_modules/expo-constants/android\\"}],\\"modules\\":[]},{\\"packageName\\":\\"expo-error-recovery\\",\\"packageVersion\\":\\"4.0.1\\",\\"projects\\":[{\\"name\\":\\"expo-error-recovery\\",\\"sourceDir\\":\\"node_modules/expo-error-recovery/android\\"}],\\"modules\\":[]},{\\"packageName\\":\\"expo-file-system\\",\\"packageVersion\\":\\"15.1.1\\",\\"projects\\":[{\\"name\\":\\"expo-file-system\\",\\"sourceDir\\":\\"node_modules/expo-file-system/android\\"}],\\"modules\\":[]},{\\"packageName\\":\\"expo-font\\",\\"packageVersion\\":\\"11.0.1\\",\\"projects\\":[{\\"name\\":\\"expo-font\\",\\"sourceDir\\":\\"node_modules/expo-font/android\\"}],\\"modules\\":[]},{\\"packageName\\":\\"expo-keep-awake\\",\\"packageVersion\\":\\"11.0.1\\",\\"projects\\":[{\\"name\\":\\"expo-keep-awake\\",\\"sourceDir\\":\\"node_modules/expo-keep-awake/android\\"}],\\"modules\\":[]},{\\"packageName\\":\\"expo-modules-core\\",\\"packageVersion\\":\\"1.0.2\\",\\"projects\\":[{\\"name\\":\\"expo-modules-core\\",\\"sourceDir\\":\\"node_modules/expo-modules-core/android\\"}],\\"modules\\":[]}]}",
61
+ {
62
+ "contents": "{"modules":[{"packageName":"expo","packageVersion":"47.0.3","projects":[{"name":"expo","sourceDir":"node_modules/expo/android"}],"modules":[]},{"packageName":"expo-application","packageVersion":"5.0.1","projects":[{"name":"expo-application","sourceDir":"node_modules/expo-application/android"}],"modules":[]},{"packageName":"expo-constants","packageVersion":"14.0.2","projects":[{"name":"expo-constants","sourceDir":"node_modules/expo-constants/android"}],"modules":[]},{"packageName":"expo-error-recovery","packageVersion":"4.0.1","projects":[{"name":"expo-error-recovery","sourceDir":"node_modules/expo-error-recovery/android"}],"modules":[]},{"packageName":"expo-file-system","packageVersion":"15.1.1","projects":[{"name":"expo-file-system","sourceDir":"node_modules/expo-file-system/android"}],"modules":[]},{"packageName":"expo-font","packageVersion":"11.0.1","projects":[{"name":"expo-font","sourceDir":"node_modules/expo-font/android"}],"modules":[]},{"packageName":"expo-keep-awake","packageVersion":"11.0.1","projects":[{"name":"expo-keep-awake","sourceDir":"node_modules/expo-keep-awake/android"}],"modules":[]},{"packageName":"expo-modules-core","packageVersion":"1.0.2","projects":[{"name":"expo-modules-core","sourceDir":"node_modules/expo-modules-core/android"}],"modules":[]}]}",
63
63
  "id": "expoAutolinkingConfig:android",
64
- "reasons": Array [
64
+ "reasons": [
65
65
  "expoAutolinkingAndroid",
66
66
  ],
67
67
  "type": "contents",
@@ -70,67 +70,67 @@ Array [
70
70
  `;
71
71
 
72
72
  exports[`getExpoAutolinkingSourcesAsync should contain expo autolinking projects 2`] = `
73
- Array [
74
- Object {
73
+ [
74
+ {
75
75
  "filePath": "node_modules/expo",
76
- "reasons": Array [
76
+ "reasons": [
77
77
  "expoAutolinkingIos",
78
78
  ],
79
79
  "type": "dir",
80
80
  },
81
- Object {
81
+ {
82
82
  "filePath": "node_modules/expo-application/ios",
83
- "reasons": Array [
83
+ "reasons": [
84
84
  "expoAutolinkingIos",
85
85
  ],
86
86
  "type": "dir",
87
87
  },
88
- Object {
88
+ {
89
89
  "filePath": "node_modules/expo-constants/ios",
90
- "reasons": Array [
90
+ "reasons": [
91
91
  "expoAutolinkingIos",
92
92
  ],
93
93
  "type": "dir",
94
94
  },
95
- Object {
95
+ {
96
96
  "filePath": "node_modules/expo-error-recovery/ios",
97
- "reasons": Array [
97
+ "reasons": [
98
98
  "expoAutolinkingIos",
99
99
  ],
100
100
  "type": "dir",
101
101
  },
102
- Object {
102
+ {
103
103
  "filePath": "node_modules/expo-file-system/ios",
104
- "reasons": Array [
104
+ "reasons": [
105
105
  "expoAutolinkingIos",
106
106
  ],
107
107
  "type": "dir",
108
108
  },
109
- Object {
109
+ {
110
110
  "filePath": "node_modules/expo-font/ios",
111
- "reasons": Array [
111
+ "reasons": [
112
112
  "expoAutolinkingIos",
113
113
  ],
114
114
  "type": "dir",
115
115
  },
116
- Object {
116
+ {
117
117
  "filePath": "node_modules/expo-keep-awake/ios",
118
- "reasons": Array [
118
+ "reasons": [
119
119
  "expoAutolinkingIos",
120
120
  ],
121
121
  "type": "dir",
122
122
  },
123
- Object {
123
+ {
124
124
  "filePath": "node_modules/expo-modules-core",
125
- "reasons": Array [
125
+ "reasons": [
126
126
  "expoAutolinkingIos",
127
127
  ],
128
128
  "type": "dir",
129
129
  },
130
- Object {
131
- "contents": "{\\"modules\\":[{\\"packageName\\":\\"expo\\",\\"packageVersion\\":\\"47.0.3\\",\\"pods\\":[{\\"podName\\":\\"Expo\\",\\"podspecDir\\":\\"node_modules/expo\\"}],\\"swiftModuleNames\\":[\\"Expo\\"],\\"modules\\":[],\\"appDelegateSubscribers\\":[],\\"reactDelegateHandlers\\":[],\\"debugOnly\\":false},{\\"packageName\\":\\"expo-application\\",\\"packageVersion\\":\\"5.0.1\\",\\"pods\\":[{\\"podName\\":\\"EXApplication\\",\\"podspecDir\\":\\"node_modules/expo-application/ios\\"}],\\"swiftModuleNames\\":[\\"EXApplication\\"],\\"modules\\":[],\\"appDelegateSubscribers\\":[],\\"reactDelegateHandlers\\":[],\\"debugOnly\\":false},{\\"packageName\\":\\"expo-constants\\",\\"packageVersion\\":\\"14.0.2\\",\\"pods\\":[{\\"podName\\":\\"EXConstants\\",\\"podspecDir\\":\\"node_modules/expo-constants/ios\\"}],\\"swiftModuleNames\\":[\\"EXConstants\\"],\\"modules\\":[],\\"appDelegateSubscribers\\":[],\\"reactDelegateHandlers\\":[],\\"debugOnly\\":false},{\\"packageName\\":\\"expo-error-recovery\\",\\"packageVersion\\":\\"4.0.1\\",\\"pods\\":[{\\"podName\\":\\"EXErrorRecovery\\",\\"podspecDir\\":\\"node_modules/expo-error-recovery/ios\\"}],\\"swiftModuleNames\\":[\\"EXErrorRecovery\\"],\\"modules\\":[],\\"appDelegateSubscribers\\":[],\\"reactDelegateHandlers\\":[],\\"debugOnly\\":false},{\\"packageName\\":\\"expo-file-system\\",\\"packageVersion\\":\\"15.1.1\\",\\"pods\\":[{\\"podName\\":\\"EXFileSystem\\",\\"podspecDir\\":\\"node_modules/expo-file-system/ios\\"}],\\"swiftModuleNames\\":[\\"EXFileSystem\\"],\\"modules\\":[],\\"appDelegateSubscribers\\":[],\\"reactDelegateHandlers\\":[],\\"debugOnly\\":false},{\\"packageName\\":\\"expo-font\\",\\"packageVersion\\":\\"11.0.1\\",\\"pods\\":[{\\"podName\\":\\"EXFont\\",\\"podspecDir\\":\\"node_modules/expo-font/ios\\"}],\\"swiftModuleNames\\":[\\"EXFont\\"],\\"modules\\":[],\\"appDelegateSubscribers\\":[],\\"reactDelegateHandlers\\":[],\\"debugOnly\\":false},{\\"packageName\\":\\"expo-keep-awake\\",\\"packageVersion\\":\\"11.0.1\\",\\"pods\\":[{\\"podName\\":\\"ExpoKeepAwake\\",\\"podspecDir\\":\\"node_modules/expo-keep-awake/ios\\"}],\\"swiftModuleNames\\":[\\"ExpoKeepAwake\\"],\\"modules\\":[\\"KeepAwakeModule\\"],\\"appDelegateSubscribers\\":[],\\"reactDelegateHandlers\\":[],\\"debugOnly\\":false},{\\"packageName\\":\\"expo-modules-core\\",\\"packageVersion\\":\\"1.0.2\\",\\"pods\\":[{\\"podName\\":\\"ExpoModulesCore\\",\\"podspecDir\\":\\"node_modules/expo-modules-core\\"}],\\"swiftModuleNames\\":[\\"ExpoModulesCore\\"],\\"modules\\":[],\\"appDelegateSubscribers\\":[],\\"reactDelegateHandlers\\":[],\\"debugOnly\\":false}]}",
130
+ {
131
+ "contents": "{"modules":[{"packageName":"expo","packageVersion":"47.0.3","pods":[{"podName":"Expo","podspecDir":"node_modules/expo"}],"swiftModuleNames":["Expo"],"modules":[],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false},{"packageName":"expo-application","packageVersion":"5.0.1","pods":[{"podName":"EXApplication","podspecDir":"node_modules/expo-application/ios"}],"swiftModuleNames":["EXApplication"],"modules":[],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false},{"packageName":"expo-constants","packageVersion":"14.0.2","pods":[{"podName":"EXConstants","podspecDir":"node_modules/expo-constants/ios"}],"swiftModuleNames":["EXConstants"],"modules":[],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false},{"packageName":"expo-error-recovery","packageVersion":"4.0.1","pods":[{"podName":"EXErrorRecovery","podspecDir":"node_modules/expo-error-recovery/ios"}],"swiftModuleNames":["EXErrorRecovery"],"modules":[],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false},{"packageName":"expo-file-system","packageVersion":"15.1.1","pods":[{"podName":"EXFileSystem","podspecDir":"node_modules/expo-file-system/ios"}],"swiftModuleNames":["EXFileSystem"],"modules":[],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false},{"packageName":"expo-font","packageVersion":"11.0.1","pods":[{"podName":"EXFont","podspecDir":"node_modules/expo-font/ios"}],"swiftModuleNames":["EXFont"],"modules":[],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false},{"packageName":"expo-keep-awake","packageVersion":"11.0.1","pods":[{"podName":"ExpoKeepAwake","podspecDir":"node_modules/expo-keep-awake/ios"}],"swiftModuleNames":["ExpoKeepAwake"],"modules":["KeepAwakeModule"],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false},{"packageName":"expo-modules-core","packageVersion":"1.0.2","pods":[{"podName":"ExpoModulesCore","podspecDir":"node_modules/expo-modules-core"}],"swiftModuleNames":["ExpoModulesCore"],"modules":[],"appDelegateSubscribers":[],"reactDelegateHandlers":[],"debugOnly":false}]}",
132
132
  "id": "expoAutolinkingConfig:ios",
133
- "reasons": Array [
133
+ "reasons": [
134
134
  "expoAutolinkingIos",
135
135
  ],
136
136
  "type": "contents",