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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skapi-js",
3
- "version": "0.0.47",
3
+ "version": "0.0.48",
4
4
  "description": "skapi serverless cloud javascript library",
5
5
  "main": "./dist/skapi.module.js",
6
6
  "scripts": {
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] == '@@' ? 'private' : parseInt(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%{}') {