blixify-server 0.1.28 → 0.1.29

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.
@@ -1 +1 @@
1
- {"version":3,"file":"QueryModel.d.ts","sourceRoot":"","sources":["../../src/model/QueryModel.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAE9C;;;;;;;;;;GAUG;AACH,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,QAAQ,GAAG,GAAG,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,CAAC;IACtD,KAAK,EAAE,GAAG,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,OAAO,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,MAAM,WAAW,IAAI;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,KAAK,GAAG,MAAM,CAAC;CACtB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,WAAY,cAAc,OAAO,GAAG,YAuB/D,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,WACjB,cAAc,QAChB,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,OACxC,GAAG,OACH,GAAG,YAqDT,CAAC"}
1
+ {"version":3,"file":"QueryModel.d.ts","sourceRoot":"","sources":["../../src/model/QueryModel.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAE9C;;;;;;;;;;GAUG;AACH,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,QAAQ,GAAG,GAAG,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,IAAI,CAAC;IACtD,KAAK,EAAE,GAAG,CAAC;IACX,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,OAAO,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,CAAC;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAED,MAAM,WAAW,IAAI;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,KAAK,GAAG,MAAM,CAAC;CACtB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,WAAY,cAAc,OAAO,GAAG,YAmC/D,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,WACjB,cAAc,QAChB,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,OACxC,GAAG,OACH,GAAG,YAkDT,CAAC"}
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.checkOpsConfig=exports.checkBaseConfig=void 0;const checkBaseConfig=(e,o)=>{let s=!0;return 0<e.baseConfig.length&&e.baseConfig.map(e=>{switch(e.type){case"api":o.body.bm_apiToken||(s=!1);break;case"auth":o.body.bm_userId||(s=!1);break;case"role":o.body.bm_userRole!==e.value&&(s=!1)}}),s},checkOpsConfig=(exports.checkBaseConfig=checkBaseConfig,(e,o,s,r)=>{let a=!1,c;return 0<(c="read"===o?e.opsConfig.read:"create"===o?e.opsConfig.create:"update"===o?e.opsConfig.update:e.opsConfig.delete).length?c.map(e=>{switch(e.type){case"api":s.body.bm_apiToken&&(a=!0);break;case"auth":s.body.bm_userId&&(a=!0);break;case"doc":s.body.bm_userId&&JSON.stringify(s.body.bm_userId)===JSON.stringify(r[e.value])&&(a=!0);break;case"org":s.body.bm_userOrg&&JSON.stringify(s.body.bm_userOrg)===JSON.stringify(r[e.value])&&(a=!0);break;case"role":s.body.bm_userRole&&s.body.bm_userRole===e.value&&(a=!0)}}):a=!0,a});exports.checkOpsConfig=checkOpsConfig;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.checkOpsConfig=exports.checkBaseConfig=void 0;const checkBaseConfig=(e,r)=>{let s=!0;return 0<e.baseConfig.length&&e.baseConfig.map(e=>{switch(e.type){case"domain":r.headers.referer||(s=!1);break;case"android":r.headers["x-android-package"]||(s=!1);break;case"androidSHA":r.headers["x-android-cert"]||(s=!1);break;case"ios":r.headers["x-ios-bundle-identifier"]||(s=!1);break;case"api":r.body.bm_apiToken||(s=!1);break;case"auth":r.body.bm_userId||(s=!1);break;case"role":r.body.bm_userRole!==e.value&&(s=!1)}}),s},checkOpsConfig=(exports.checkBaseConfig=checkBaseConfig,(e,r,s,a)=>{let o=!1,i;return 0<(i="read"===r?e.opsConfig.read:"create"===r?e.opsConfig.create:"update"===r?e.opsConfig.update:e.opsConfig.delete).length?i.map(e=>{switch(e.type){case"auth":s.body.bm_userId&&(o=!0);break;case"doc":s.body.bm_userId&&JSON.stringify(s.body.bm_userId)===JSON.stringify(a[e.value])&&(o=!0);break;case"org":s.body.bm_userOrg&&JSON.stringify(s.body.bm_userOrg)===JSON.stringify(a[e.value])&&(o=!0);break;case"role":s.body.bm_userRole&&s.body.bm_userRole===e.value&&(o=!0)}}):o=!0,o});exports.checkOpsConfig=checkOpsConfig;
@@ -8,7 +8,7 @@
8
8
  *
9
9
  */
10
10
  interface Config {
11
- type: "auth" | "org" | "role" | "api" | "doc";
11
+ type: "auth" | "org" | "role" | "api" | "doc" | "domain" | "ios" | "android" | "androidSHA";
12
12
  value: string;
13
13
  }
14
14
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"SecurityConfig.d.ts","sourceRoot":"","sources":["../../src/model/SecurityConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,UAAU,MAAM;IACd,IAAI,EAAE,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,CAAC;IAC9C,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,WAAW,cAAc;IACrC,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,SAAS,EAAE;QACT,IAAI,EAAE,MAAM,EAAE,CAAC;QACf,MAAM,EAAE,MAAM,EAAE,CAAC;QACjB,MAAM,EAAE,MAAM,EAAE,CAAC;QACjB,MAAM,EAAE,MAAM,EAAE,CAAC;KAClB,CAAC;CACH"}
1
+ {"version":3,"file":"SecurityConfig.d.ts","sourceRoot":"","sources":["../../src/model/SecurityConfig.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,UAAU,MAAM;IACd,IAAI,EACA,MAAM,GACN,KAAK,GACL,MAAM,GACN,KAAK,GACL,KAAK,GACL,QAAQ,GACR,KAAK,GACL,SAAS,GACT,YAAY,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,WAAW,cAAc;IACrC,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,SAAS,EAAE;QACT,IAAI,EAAE,MAAM,EAAE,CAAC;QACf,MAAM,EAAE,MAAM,EAAE,CAAC;QACjB,MAAM,EAAE,MAAM,EAAE,CAAC;QACjB,MAAM,EAAE,MAAM,EAAE,CAAC;KAClB,CAAC;CACH"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "blixify-server",
3
- "version": "0.1.28",
3
+ "version": "0.1.29",
4
4
  "license": "MIT",
5
5
  "main": "dist/apis/index.js",
6
6
  "private": false,
@@ -11,7 +11,8 @@
11
11
  "dist"
12
12
  ],
13
13
  "scripts": {
14
- "clean": "rm -rf ./dist",
14
+ "clean": "node -e \"const os = require('os'); if (os.platform() === 'win32') { require('child_process').execSync('yarn clean:windows'); } else { require('child_process').execSync('yarn clean:darwin'); }\"",
15
+ "clean:darwin": "rm -rf ./dist",
15
16
  "clean:windows": "rmdir /s dist",
16
17
  "prebuild": "yarn clean",
17
18
  "predeploy": "yarn clean",