@expo/metro-config 58.0.13 → 58.0.15

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.
Files changed (40) hide show
  1. package/build/ExpoMetroConfig.d.ts +0 -1
  2. package/build/ExpoMetroConfig.js +0 -5
  3. package/build/ExpoMetroConfig.js.map +1 -1
  4. package/build/transform-worker/noxcturnal/metro-transform-worker.js +0 -3
  5. package/build/transform-worker/noxcturnal/metro-transform-worker.js.map +1 -1
  6. package/build/transform-worker/noxcturnal/noxcturnal-transformer.d.ts +0 -6
  7. package/build/transform-worker/noxcturnal/noxcturnal-transformer.js +5 -58
  8. package/build/transform-worker/noxcturnal/noxcturnal-transformer.js.map +1 -1
  9. package/build/transform-worker/noxcturnal/plugins/client-server-directive-boundary.js +7 -0
  10. package/build/transform-worker/noxcturnal/plugins/client-server-directive-boundary.js.map +1 -1
  11. package/build/transform-worker/noxcturnal/plugins/environment-restricted-react-apis.js +7 -2
  12. package/build/transform-worker/noxcturnal/plugins/environment-restricted-react-apis.js.map +1 -1
  13. package/build/transform-worker/noxcturnal/plugins/expo-dom-component.js +5 -0
  14. package/build/transform-worker/noxcturnal/plugins/expo-dom-component.js.map +1 -1
  15. package/build/transform-worker/noxcturnal/plugins/import-meta.js +8 -0
  16. package/build/transform-worker/noxcturnal/plugins/import-meta.js.map +1 -1
  17. package/build/transform-worker/noxcturnal/plugins/inline-requires.js +7 -0
  18. package/build/transform-worker/noxcturnal/plugins/inline-requires.js.map +1 -1
  19. package/build/transform-worker/noxcturnal/plugins/metro-live-bindings.js +10 -0
  20. package/build/transform-worker/noxcturnal/plugins/metro-live-bindings.js.map +1 -1
  21. package/build/transform-worker/noxcturnal/plugins/platform-select.js +7 -0
  22. package/build/transform-worker/noxcturnal/plugins/platform-select.js.map +1 -1
  23. package/build/transform-worker/noxcturnal/plugins/process-env.js +1 -5
  24. package/build/transform-worker/noxcturnal/plugins/process-env.js.map +1 -1
  25. package/build/transform-worker/noxcturnal/plugins/react-display-name.js +7 -0
  26. package/build/transform-worker/noxcturnal/plugins/react-display-name.js.map +1 -1
  27. package/build/transform-worker/noxcturnal/plugins/react-server-directive-boundary.js +7 -0
  28. package/build/transform-worker/noxcturnal/plugins/react-server-directive-boundary.js.map +1 -1
  29. package/build/transform-worker/noxcturnal/plugins/react-server-module-actions.js +31 -2
  30. package/build/transform-worker/noxcturnal/plugins/react-server-module-actions.js.map +1 -1
  31. package/package.json +4 -4
  32. package/build/transform-worker/noxcturnal/plugins/fix-hermes-v1-async-arrow-non-simple-params.d.ts +0 -3
  33. package/build/transform-worker/noxcturnal/plugins/fix-hermes-v1-async-arrow-non-simple-params.js +0 -122
  34. package/build/transform-worker/noxcturnal/plugins/fix-hermes-v1-async-arrow-non-simple-params.js.map +0 -1
  35. package/build/transform-worker/noxcturnal/plugins/fix-hermes-v1-class-in-finally.d.ts +0 -3
  36. package/build/transform-worker/noxcturnal/plugins/fix-hermes-v1-class-in-finally.js +0 -81
  37. package/build/transform-worker/noxcturnal/plugins/fix-hermes-v1-class-in-finally.js.map +0 -1
  38. package/build/transform-worker/noxcturnal/plugins/fix-hermes-v1-super-in-object-accessor.d.ts +0 -3
  39. package/build/transform-worker/noxcturnal/plugins/fix-hermes-v1-super-in-object-accessor.js +0 -78
  40. package/build/transform-worker/noxcturnal/plugins/fix-hermes-v1-super-in-object-accessor.js.map +0 -1
@@ -1,78 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- Object.defineProperty(exports, "createFixHermesV1SuperInObjectAccessorPlugin", {
6
- enumerable: true,
7
- get: function() {
8
- return createFixHermesV1SuperInObjectAccessorPlugin;
9
- }
10
- });
11
- function createFixHermesV1SuperInObjectAccessorPlugin(nox) {
12
- const superAncestry = {
13
- ancestry: {
14
- mode: 'findParent',
15
- routes: {
16
- 'StaticMemberExpression|ComputedMemberExpression': {
17
- children: {
18
- object: {
19
- route: 'Expression|Super'
20
- }
21
- }
22
- }
23
- }
24
- }
25
- };
26
- return nox.defineNativePlugin({
27
- name: 'expo-fix-hermes-v1-super-in-object-accessor',
28
- createState: ()=>new Set(),
29
- visitors: [
30
- nox.defineVisitor('ObjectProperty', {
31
- fields: [
32
- 'kind',
33
- 'computed',
34
- 'key'
35
- ],
36
- controlFlow: [
37
- 'nested-traverse'
38
- ],
39
- nested: [
40
- nox.defineVisitor('Super', superAncestry, ()=>{})
41
- ],
42
- children: {
43
- key: {
44
- route: 'Expression'
45
- }
46
- }
47
- }, (accessor, rewritten)=>{
48
- if (accessor.node.computed || accessor.node.kind !== 'get' && accessor.node.kind !== 'set' || typeof accessor.node.key !== 'string') {
49
- return;
50
- }
51
- const key = accessor.getChild('key');
52
- if (!key || key.node.type !== 'Identifier' && key.node.type !== 'StringLiteral') {
53
- return;
54
- }
55
- accessor.traverse([
56
- nox.defineVisitor('Super', superAncestry, (superPath)=>{
57
- const member = superPath.parentPath;
58
- if (!member || member.node.type !== 'StaticMemberExpression' && member.node.type !== 'ComputedMemberExpression' || member.getChild('object')?.id !== superPath.id) {
59
- return;
60
- }
61
- let parent = member.parentPath;
62
- while(parent && parent.id !== accessor.id){
63
- if (parent.node.type === 'Class' || parent.node.type === 'MethodDefinition' || parent.node.type === 'Function' && parent.parentPath?.id !== accessor.id || parent.node.type === 'StaticBlock' || parent.node.type === 'PropertyDefinition' || parent.node.type === 'AccessorProperty' || parent.node.type === 'ObjectProperty') {
64
- return;
65
- }
66
- parent = parent.parentPath;
67
- }
68
- if (!parent || rewritten.has(accessor.id)) return;
69
- rewritten.add(accessor.id);
70
- key.replaceWith(`[${JSON.stringify(accessor.node.key)}]`);
71
- })
72
- ]);
73
- })
74
- ]
75
- });
76
- }
77
-
78
- //# sourceMappingURL=fix-hermes-v1-super-in-object-accessor.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["transform-worker/noxcturnal/plugins/fix-hermes-v1-super-in-object-accessor.ts"],"sourcesContent":[null],"names":["createFixHermesV1SuperInObjectAccessorPlugin","nox","superAncestry","ancestry","mode","routes","children","object","route","defineNativePlugin","name","createState","Set","visitors","defineVisitor","fields","controlFlow","nested","key","accessor","rewritten","node","computed","kind","getChild","type","traverse","superPath","member","parentPath","id","parent","has","add","replaceWith","JSON","stringify"],"mappings":";;;;+BAIgBA;;;eAAAA;;;AAAT,SAASA,6CACdC,GAAe;IAEf,MAAMC,gBAAgB;QACpBC,UAAU;YACRC,MAAM;YACNC,QAAQ;gBACN,mDAAmD;oBACjDC,UAAU;wBAAEC,QAAQ;4BAAEC,OAAO;wBAAmB;oBAAE;gBACpD;YACF;QACF;IACF;IACA,OAAOP,IAAIQ,kBAAkB,CAAc;QACzCC,MAAM;QACNC,aAAa,IAAM,IAAIC;QACvBC,UAAU;YACRZ,IAAIa,aAAa,CACf,kBACA;gBACEC,QAAQ;oBAAC;oBAAQ;oBAAY;iBAAM;gBACnCC,aAAa;oBAAC;iBAAkB;gBAChCC,QAAQ;oBAAChB,IAAIa,aAAa,CAAC,SAASZ,eAAe,KAAO;iBAAG;gBAC7DI,UAAU;oBAAEY,KAAK;wBAAEV,OAAO;oBAAa;gBAAE;YAC3C,GACA,CAACW,UAAUC;gBACT,IACED,SAASE,IAAI,CAACC,QAAQ,IACrBH,SAASE,IAAI,CAACE,IAAI,KAAK,SAASJ,SAASE,IAAI,CAACE,IAAI,KAAK,SACxD,OAAOJ,SAASE,IAAI,CAACH,GAAG,KAAK,UAC7B;oBACA;gBACF;gBACA,MAAMA,MAAMC,SAASK,QAAQ,CAAC;gBAC9B,IAAI,CAACN,OAAQA,IAAIG,IAAI,CAACI,IAAI,KAAK,gBAAgBP,IAAIG,IAAI,CAACI,IAAI,KAAK,iBAAkB;oBACjF;gBACF;gBACAN,SAASO,QAAQ,CAAC;oBAChBzB,IAAIa,aAAa,CAAC,SAASZ,eAAe,CAACyB;wBACzC,MAAMC,SAASD,UAAUE,UAAU;wBACnC,IACE,CAACD,UACAA,OAAOP,IAAI,CAACI,IAAI,KAAK,4BACpBG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