@react-native/codegen
Advanced tools
@@ -12,4 +12,4 @@ 'use strict'; | ||
| } = require('./combine-utils'); | ||
| const fs = require('fs'); | ||
| const path = require('path'); | ||
| const fs = require('node:fs'); | ||
| const path = require('node:path'); | ||
| const { | ||
@@ -16,0 +16,0 @@ globSync |
| 'use strict'; | ||
| const assert = require('assert'); | ||
| const fs = require('fs'); | ||
| const assert = require('node:assert'); | ||
| const fs = require('node:fs'); | ||
| const yargs = require('yargs'); | ||
@@ -6,0 +6,0 @@ const argv = yargs.option('p', { |
| 'use strict'; | ||
| const path = require('path'); | ||
| const path = require('node:path'); | ||
| function filterJSFile(originalFilePath, currentPlatform, excludeRegExp) { | ||
@@ -5,0 +5,0 @@ const filePath = originalFilePath.replace(/\.fb(\.|$)/, '$1'); |
| 'use strict'; | ||
| const RNCodegen = require('../../generators/RNCodegen.js'); | ||
| const fs = require('fs'); | ||
| const fs = require('node:fs'); | ||
| const args = process.argv.slice(2); | ||
@@ -6,0 +6,0 @@ if (args.length < 3) { |
@@ -9,3 +9,3 @@ 'use strict'; | ||
| } = require('../../parsers/typescript/parser'); | ||
| const path = require('path'); | ||
| const path = require('node:path'); | ||
| const flowParser = new FlowParser(); | ||
@@ -12,0 +12,0 @@ const typescriptParser = new TypeScriptParser(); |
@@ -127,3 +127,3 @@ 'use strict'; | ||
| { | ||
| return notStruct(wrapOptional('NSMutableData *', !nullable)); | ||
| return notStruct(wrapOptional('NSData *', !nullable)); | ||
| } | ||
@@ -130,0 +130,0 @@ } |
@@ -26,4 +26,4 @@ 'use strict'; | ||
| const generateModuleObjCpp = require('./modules/GenerateModuleObjCpp'); | ||
| const fs = require('fs'); | ||
| const path = require('path'); | ||
| const fs = require('node:fs'); | ||
| const path = require('node:path'); | ||
| const ALL_GENERATORS = { | ||
@@ -30,0 +30,0 @@ generateComponentDescriptorH: generateComponentDescriptorH.generate, |
@@ -35,4 +35,4 @@ 'use strict'; | ||
| } = require('./parseFlowAndThrowErrors'); | ||
| const fs = require('fs'); | ||
| const invariant = require('invariant'); | ||
| const fs = require('node:fs'); | ||
| class FlowParser { | ||
@@ -39,0 +39,0 @@ constructor() { |
@@ -37,4 +37,4 @@ 'use strict'; | ||
| const babelParser = require('@babel/parser'); | ||
| const fs = require('fs'); | ||
| const invariant = require('invariant'); | ||
| const fs = require('node:fs'); | ||
| class TypeScriptParser { | ||
@@ -41,0 +41,0 @@ constructor() { |
@@ -6,3 +6,3 @@ 'use strict'; | ||
| } = require('./errors'); | ||
| const path = require('path'); | ||
| const path = require('node:path'); | ||
| function extractNativeModuleName(filename) { | ||
@@ -9,0 +9,0 @@ return path.basename(filename).split('.')[0]; |
+1
-1
| { | ||
| "name": "@react-native/codegen", | ||
| "version": "0.88.0-nightly-20260721-7bb31ff7b", | ||
| "version": "0.88.0-nightly-20260722-eb4d3892a", | ||
| "description": "Code generation tools for React Native", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
1047749
0.01%