peachsim 0.1.2612 → 0.1.2614
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/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +2 -2
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +5 -5
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +3 -3
- package/dist-lib/bundle-channel.cjs +29 -67
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +3 -3
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +3 -3
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +2 -2
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +7 -7
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +5 -5
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/esm-chunks/{acorn-QO4N4OBM.mjs → acorn-HOYWJ6HD.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-VAIU3RSQ.mjs → chunk-5YXG76DU.mjs} +14 -14
- package/dist-lib/esm-chunks/{chunk-3ZTDI2MF.mjs → chunk-BFFUFF2B.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-HQGPI7FM.mjs → chunk-BKBUMVDA.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-6ZP7JWNX.mjs → chunk-BX6ZOZIG.mjs} +12 -55
- package/dist-lib/esm-chunks/{chunk-YAK7RNDV.mjs → chunk-CAL3QOE2.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-XPVBWRWY.mjs → chunk-G3W6SVVM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-THHH7IPK.mjs → chunk-H2X7V7QM.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-7OAXAYW7.mjs → chunk-HVWCKHES.mjs} +4 -4
- package/dist-lib/esm-chunks/{chunk-252KNQUF.mjs → chunk-IPDU657P.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-LDYLSTVC.mjs → chunk-L5SSSCCQ.mjs} +5 -5
- package/dist-lib/esm-chunks/{chunk-PPDXMRAA.mjs → chunk-LPTVCIM7.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-WMQA6U5H.mjs → chunk-MLZMUUL2.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-ZRJG25JE.mjs → chunk-MTFHGDHC.mjs} +3 -3
- package/dist-lib/esm-chunks/{chunk-GRDRKYB5.mjs → chunk-NSUQICOP.mjs} +6 -6
- package/dist-lib/esm-chunks/{chunk-4JTACUL3.mjs → chunk-PNPJNBQV.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-O5VA25UA.mjs → chunk-PRLD4EQ4.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-6VWQEI2U.mjs → chunk-QB2TI2O5.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-BWWPWGZW.mjs → chunk-QJXCWQM5.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-UGPX2JTI.mjs → chunk-QX3ZZ4YJ.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-VM5QGKMB.mjs → chunk-TBDI4H4E.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-PDKX5WGD.mjs → chunk-WFO7WQ23.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-HHQHP6NX.mjs → chunk-XEF5NS7Z.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-HEPU5HEE.mjs → chunk-Y25P4JVE.mjs} +1 -1
- package/dist-lib/esm-chunks/{chunk-WTTIS3AY.mjs → chunk-YUSM3E2C.mjs} +2 -2
- package/dist-lib/esm-chunks/{metro-layout-parser-UUA4AJ2Q.mjs → metro-layout-parser-R6NOZIGH.mjs} +3 -3
- package/dist-lib/esm-chunks/{swift-package-prebuilt-EVJIROFN.mjs → swift-package-prebuilt-V33WRSQ6.mjs} +12 -12
- package/dist-lib/esm-chunks/{swift-sdk-app-module-M5TKMPU6.mjs → swift-sdk-app-module-NG7HU3IO.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-4FST3VAH.mjs → swift-sdk-image-ZE5BFYGL.mjs} +16 -16
- package/dist-lib/esm-chunks/{swift-sdk-image-producer-4DUU7RUD.mjs → swift-sdk-image-producer-KSSLS4GL.mjs} +5 -5
- package/dist-lib/expo-swift-bundle.cjs +28 -66
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +7 -7
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +93 -75
- package/dist-lib/host/fetch-proxy-handler.cjs +3 -3
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +2 -2
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +3 -3
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +3 -3
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +4 -4
- package/dist-lib/native-app-identity-project.cjs +12 -55
- package/dist-lib/native-app-identity-project.mjs +15 -15
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +6 -6
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +3 -3
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +2 -2
- package/dist-lib/plist.cjs +12 -55
- package/dist-lib/plist.mjs +3 -3
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +85 -85
- package/dist-lib/public-origins-lib.json +64 -64
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +2 -2
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +11 -10
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +8 -8
- package/dist-lib/skills.cjs +93 -75
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +12 -12
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +3 -3
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +6 -6
- package/dist-lib/swift-svg-raster.cjs +1 -1
- package/dist-lib/swift-svg-raster.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vendor/@peculiar/x509.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/nodes.js.cjs +1 -1
- package/dist-lib/vendor/@ruby/prism/src/parsePrism.js.cjs +1 -1
- package/dist-lib/vendor/acorn.cjs +1 -1
- package/dist-lib/vendor/magic-string.cjs +1 -1
- package/dist-lib/vendor/stream-json.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/index.js.cjs +1 -1
- package/dist-lib/vendor/sucrase/dist/parser/tokenizer/types.js.cjs +1 -1
- package/dist-lib/vendor/sucrase.cjs +1 -1
- package/dist-lib/vendor/terser.cjs +1 -1
- package/dist-lib/vendor/valibot.cjs +1 -1
- package/dist-lib/vendor/ws.cjs +1 -1
- package/dist-lib/vendor/zod.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +3 -3
- package/package.json +1 -1
- package/src/plist.ts +13 -56
- package/src/podspec-ruby.ts +17 -10
package/package.json
CHANGED
package/src/plist.ts
CHANGED
|
@@ -180,6 +180,8 @@ function parseXmlDocument(input: string): XmlElementNode {
|
|
|
180
180
|
return readElement()
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
+
export function parseXmlPlist(source: string): PlistValue
|
|
184
|
+
export function parseXmlPlist(source: string, options: ParseXmlPlistOptions): unknown
|
|
183
185
|
export function parseXmlPlist(
|
|
184
186
|
source: string,
|
|
185
187
|
options: ParseXmlPlistOptions = {},
|
|
@@ -188,10 +190,6 @@ export function parseXmlPlist(
|
|
|
188
190
|
if (root.tag !== 'plist') {
|
|
189
191
|
throw new Error(`expected <plist> root element, got <${root.tag}>`)
|
|
190
192
|
}
|
|
191
|
-
if (root.children.length === 0) {
|
|
192
|
-
if (options.strict) throw new Error('<plist> element has no root value')
|
|
193
|
-
return undefined
|
|
194
|
-
}
|
|
195
193
|
if (options.strict && root.children.length !== 1) {
|
|
196
194
|
throw new Error('<plist> element must contain exactly one root value')
|
|
197
195
|
}
|
|
@@ -206,18 +204,23 @@ export function parseXmlPlist(
|
|
|
206
204
|
const visit = (node: XmlElementNode): unknown => {
|
|
207
205
|
switch (node.tag) {
|
|
208
206
|
case 'dict': {
|
|
209
|
-
const
|
|
207
|
+
const entries: [string, unknown][] = []
|
|
210
208
|
if (options.strict && node.children.length % 2 !== 0) {
|
|
211
209
|
throw new Error('<dict> must contain key/value pairs')
|
|
212
210
|
}
|
|
213
|
-
for (let i = 0; i
|
|
211
|
+
for (let i = 0; i < node.children.length; i += 2) {
|
|
214
212
|
const keyNode = node.children[i]!
|
|
215
213
|
if (keyNode.tag !== 'key') {
|
|
216
214
|
throw new Error(`expected <key> in <dict>, got <${keyNode.tag}>`)
|
|
217
215
|
}
|
|
218
|
-
|
|
216
|
+
const key = leafText(keyNode)
|
|
217
|
+
if (!options.strict && key === '__proto__') {
|
|
218
|
+
throw new Error('unsupported plist dictionary key __proto__')
|
|
219
|
+
}
|
|
220
|
+
const value = node.children[i + 1]
|
|
221
|
+
entries.push([key, value ? visit(value) : ''])
|
|
219
222
|
}
|
|
220
|
-
return
|
|
223
|
+
return Object.fromEntries(entries)
|
|
221
224
|
}
|
|
222
225
|
case 'array':
|
|
223
226
|
return node.children.map(visit)
|
|
@@ -248,57 +251,11 @@ export function parseXmlPlist(
|
|
|
248
251
|
}
|
|
249
252
|
}
|
|
250
253
|
|
|
251
|
-
return visit(root.children[0]!)
|
|
254
|
+
return root.children.length === 1 ? visit(root.children[0]!) : root.children.map(visit)
|
|
252
255
|
}
|
|
253
256
|
|
|
254
257
|
export function parsePlist(source: string): PlistValue {
|
|
255
|
-
|
|
256
|
-
if (root.tag !== 'plist') {
|
|
257
|
-
throw new Error(`expected <plist> root element, got <${root.tag}>`)
|
|
258
|
-
}
|
|
259
|
-
if (root.children.length === 0) return {}
|
|
260
|
-
|
|
261
|
-
const visit = (node: XmlElementNode): PlistValue => {
|
|
262
|
-
switch (node.tag) {
|
|
263
|
-
case 'dict': {
|
|
264
|
-
const result: PlistObject = {}
|
|
265
|
-
for (let i = 0; i + 1 < node.children.length; i += 2) {
|
|
266
|
-
const keyNode = node.children[i]!
|
|
267
|
-
if (keyNode.tag !== 'key') {
|
|
268
|
-
throw new Error(`expected <key> in <dict>, got <${keyNode.tag}>`)
|
|
269
|
-
}
|
|
270
|
-
result[keyNode.text] = visit(node.children[i + 1]!)
|
|
271
|
-
}
|
|
272
|
-
return result
|
|
273
|
-
}
|
|
274
|
-
case 'array':
|
|
275
|
-
return node.children.map(visit)
|
|
276
|
-
case 'string':
|
|
277
|
-
return node.text
|
|
278
|
-
case 'integer': {
|
|
279
|
-
const raw = node.text.trim()
|
|
280
|
-
if (!raw) throw new Error('empty <integer> element')
|
|
281
|
-
return Number.parseInt(raw, 10)
|
|
282
|
-
}
|
|
283
|
-
case 'real': {
|
|
284
|
-
const raw = node.text.trim()
|
|
285
|
-
if (!raw) throw new Error('empty <real> element')
|
|
286
|
-
return Number.parseFloat(raw)
|
|
287
|
-
}
|
|
288
|
-
case 'true':
|
|
289
|
-
return true
|
|
290
|
-
case 'false':
|
|
291
|
-
return false
|
|
292
|
-
case 'data':
|
|
293
|
-
return Buffer.from(node.text.replace(/\s+/g, ''), 'base64')
|
|
294
|
-
case 'date':
|
|
295
|
-
return new Date(node.text.trim())
|
|
296
|
-
default:
|
|
297
|
-
throw new Error(`unsupported plist element ${node.tag}`)
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
return visit(root.children[0]!)
|
|
258
|
+
return parseXmlPlist(source)
|
|
302
259
|
}
|
|
303
260
|
|
|
304
261
|
export function parsePlistSource(source: string): unknown {
|
package/src/podspec-ruby.ts
CHANGED
|
@@ -5324,19 +5324,26 @@ export function childEnv(env: Map<string, string>): NodeJS.ProcessEnv {
|
|
|
5324
5324
|
return result
|
|
5325
5325
|
}
|
|
5326
5326
|
|
|
5327
|
-
/**
|
|
5328
|
-
|
|
5329
|
-
|
|
5327
|
+
/** resolves the real path of `target` through its deepest existing ancestor, rejecting dangling symlinks. */
|
|
5328
|
+
function canonicalPath(target: string): string | null {
|
|
5329
|
+
const resolved = path.resolve(target)
|
|
5330
|
+
let existing = resolved
|
|
5330
5331
|
while (!fs.existsSync(existing)) {
|
|
5331
|
-
if (fs.lstatSync(existing, { throwIfNoEntry: false })?.isSymbolicLink()) return
|
|
5332
|
-
|
|
5332
|
+
if (fs.lstatSync(existing, { throwIfNoEntry: false })?.isSymbolicLink()) return null
|
|
5333
|
+
const parent = path.dirname(existing)
|
|
5334
|
+
if (parent === existing) return null
|
|
5335
|
+
existing = parent
|
|
5333
5336
|
}
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
|
|
5337
|
+
return path.join(fs.realpathSync.native(existing), path.relative(existing, resolved))
|
|
5338
|
+
}
|
|
5339
|
+
|
|
5340
|
+
/** whether `target` lies in one of `roots`, comparing real paths, as a symlinked temporary directory reaches the same files. */
|
|
5341
|
+
export function insideRoots(target: string, roots: readonly string[]): boolean {
|
|
5342
|
+
const real = canonicalPath(target)
|
|
5343
|
+
if (!real) return false
|
|
5338
5344
|
return roots.some((root) => {
|
|
5339
|
-
const canonical =
|
|
5345
|
+
const canonical = canonicalPath(root)
|
|
5346
|
+
if (!canonical) return false
|
|
5340
5347
|
return real === canonical || real.startsWith(`${canonical}/`)
|
|
5341
5348
|
})
|
|
5342
5349
|
}
|