17 lines
825 B
JavaScript
17 lines
825 B
JavaScript
import createProbe from './dist/freecad-private-naming-source-probe.js'
|
|
|
|
const probe = await createProbe()
|
|
const result = probe.freecadPrivateNamingSourceProbe()
|
|
if (result !== 'Edge12;:M;CUT;:H2a:7,E') throw new Error(`Unexpected FreeCAD private naming source probe result: ${result}`)
|
|
for (const forbidden of ['freecadNamingAbiVersion', 'freecadNamingCapabilitiesJson', 'freecadNamingEvidenceJson']) {
|
|
if (typeof probe[forbidden] === 'function') throw new Error(`Source prerequisite probe must not export production ABI callback ${forbidden}.`)
|
|
}
|
|
console.log(JSON.stringify({
|
|
status: 'source-prerequisite-pass',
|
|
freecadVersion: '1.1.1',
|
|
sourceCommit: '0108fd4b4850cc46e625b60e53cea7a7bbe69f8d',
|
|
linkedSources: ['App/IndexedName.cpp', 'App/MappedName.cpp'],
|
|
result,
|
|
productionWorkerLinked: false,
|
|
}, null, 2))
|