@be-link/pos-cli-nodejs 1.0.75 → 1.0.81
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/package.json
CHANGED
package/utils/posProxy/index.js
CHANGED
|
@@ -4,8 +4,12 @@ const comboInfoProxy_1 = require("./comboInfoProxy");
|
|
|
4
4
|
const itemInfoProxy_1 = require("./itemInfoProxy");
|
|
5
5
|
const skuInfoProxy_1 = require("./skuInfoProxy");
|
|
6
6
|
const venueInfoProxy_1 = require("./venueInfoProxy");
|
|
7
|
+
const lodash_1 = require("lodash");
|
|
7
8
|
class PosProxyFactory {
|
|
8
9
|
static createProxy(order) {
|
|
10
|
+
// @ts-ignore
|
|
11
|
+
if ((0, lodash_1.isEmpty)(order))
|
|
12
|
+
return null;
|
|
9
13
|
const version = order.attributes.isMigratedItemOrder ? 'V2' : 'V1';
|
|
10
14
|
let itemInfoProxy;
|
|
11
15
|
let skuInfoProxy;
|