corebasic 1.0.271 → 1.0.272

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.
@@ -237,8 +237,8 @@ const apiHandler = async (req, res) => {
237
237
  const collection_config = Dip.getCollectionEntry(leaf);
238
238
  let _dipMeta;
239
239
  if (collection_config) {
240
- const company = typeof collection_config.company === "object" ? meta.company : collection_config.company;
241
- const outlet = typeof collection_config.outlet === "object" ? meta.outlet : collection_config.outlet;
240
+ const company = typeof collection_config.company === "object" ? (collection_config.company.default ?? meta.company) : collection_config.company;
241
+ const outlet = typeof collection_config.outlet === "object" ? (collection_config.outlet.default ?? meta.outlet) : collection_config.outlet;
242
242
  if (company === "GLOBAL" && outlet === "GLOBAL")
243
243
  _dipMeta = Dip.globalMeta();
244
244
  else if (outlet === "GLOBAL" && company)
package/libs/features.ts CHANGED
@@ -374,8 +374,8 @@ const apiHandler = async (req: ExpressRequest, res: ExpressResponse) => {
374
374
  const collection_config = Dip.getCollectionEntry(leaf)
375
375
  let _dipMeta
376
376
  if (collection_config) {
377
- const company = typeof collection_config.company === "object" ? meta.company : collection_config.company
378
- const outlet = typeof collection_config.outlet === "object" ? meta.outlet : collection_config.outlet
377
+ const company = typeof collection_config.company === "object" ? ((collection_config.company as {default: string}).default ?? meta.company) : collection_config.company
378
+ const outlet = typeof collection_config.outlet === "object" ? ((collection_config.outlet as {default: string}).default ?? meta.outlet) : collection_config.outlet
379
379
  if (company === "GLOBAL" && outlet === "GLOBAL")
380
380
  _dipMeta = Dip.globalMeta()
381
381
  else if (outlet === "GLOBAL" && company)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "corebasic",
3
3
  "type": "module",
4
- "version": "1.0.271",
4
+ "version": "1.0.272",
5
5
  "description": "",
6
6
  "main": "dist/index.js",
7
7
  "types": "./index.ts",