import * as _Neon from "@cityofzion/neon-core" ; import * as plugin from "./plugin" ; import { default as apiSettings } from "./settings" ; function assignSettings ( baseSettings , newSettings ) { for ( const key in newSettings ) { if ( ! ( key in baseSettings ) ) { Object . defineProperty ( baseSettings , key , { get ( ) { return newSettings [ key ] ; } , set ( val ) { newSettings [ key ] = val ; } , } ) ; } } } function bundle < T extends typeof _Neon > ( neonCore ) { assignSettings ( neonCore . settings , apiSettings ) ; return { ... ( neonCore as any ) , api : plugin } ; } export default bundle ; export * from "./plugin" ;