skapi-js 0.0.47 → 0.0.48
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/dist/skapi.js +1 -1
- package/dist/skapi.js.map +1 -1
- package/dist/skapi.module.js +1 -1
- package/dist/skapi.module.js.map +1 -1
- package/package.json +1 -1
- package/src/utils.ts +4 -8
package/package.json
CHANGED
package/src/utils.ts
CHANGED
|
@@ -632,6 +632,9 @@ function normalize_record_data<T extends RecordData>(record: T): RecordData {
|
|
|
632
632
|
const output: Record<any, any> = {};
|
|
633
633
|
|
|
634
634
|
const keys = {
|
|
635
|
+
'ip': (r) => {
|
|
636
|
+
output.ip = r;
|
|
637
|
+
},
|
|
635
638
|
'rec': (r) => {
|
|
636
639
|
if (!r) return;
|
|
637
640
|
output.record_id = r;
|
|
@@ -647,7 +650,7 @@ function normalize_record_data<T extends RecordData>(record: T): RecordData {
|
|
|
647
650
|
if (!r) return;
|
|
648
651
|
let rSplit = r.split('/');
|
|
649
652
|
output.table = rSplit[0];
|
|
650
|
-
output.access_group = rSplit[2] == '
|
|
653
|
+
output.access_group = rSplit[2] == '**' ? 'private' : parseInt(rSplit[2]);
|
|
651
654
|
if (rSplit?.[3]) {
|
|
652
655
|
output.subscription = {
|
|
653
656
|
user_id: rSplit[3],
|
|
@@ -694,13 +697,6 @@ function normalize_record_data<T extends RecordData>(record: T): RecordData {
|
|
|
694
697
|
'rfd': (r) => {
|
|
695
698
|
output.referenced_count = r;
|
|
696
699
|
},
|
|
697
|
-
'prv_acs': (r) => {
|
|
698
|
-
if (!r) return;
|
|
699
|
-
if (!output?.config)
|
|
700
|
-
output.config = {};
|
|
701
|
-
|
|
702
|
-
output.config.private_access = r;
|
|
703
|
-
},
|
|
704
700
|
'data': (r) => {
|
|
705
701
|
let data = r;
|
|
706
702
|
if (r === '!D%{}') {
|