@researchdatabox/sails-hook-redbox-storage-mongo 1.5.0 → 1.5.1

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.
@@ -23,7 +23,7 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.Services = void 0;
26
- const Rx_1 = require("rxjs/Rx");
26
+ const rxjs_1 = require("rxjs");
27
27
  const uuid_1 = require("uuid");
28
28
  const luxon_1 = require("luxon");
29
29
  const mongodb = require("mongodb");
@@ -692,9 +692,9 @@ var Services;
692
692
  reqs.push(this.addAndRemoveDatastreams(oid, fileIdsAdded, removeIds));
693
693
  }));
694
694
  if (_.isEmpty(reqs)) {
695
- reqs.push(Rx_1.Observable.of({ "request": "dummy" }));
695
+ reqs.push((0, rxjs_1.of)({ "request": "dummy" }));
696
696
  }
697
- return Rx_1.Observable.of(reqs);
697
+ return (0, rxjs_1.of)(reqs);
698
698
  });
699
699
  }
700
700
  removeDatastream(oid, datastream) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@researchdatabox/sails-hook-redbox-storage-mongo",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "A MongoDB storage plugin for ReDBox.",
5
5
  "main": "index.js",
6
6
  "sails": {
@@ -33,19 +33,17 @@
33
33
  "author": "QCIF Engineering dev@redboxresearchdata.com.au",
34
34
  "license": "GPL-3.0",
35
35
  "devDependencies": {
36
- "@researchdatabox/redbox-core-types": "1.4.8",
36
+ "@researchdatabox/redbox-core-types": "^1.5.0",
37
37
  "@types/chai": "5.2.2",
38
38
  "@types/lodash": "4.17.17",
39
39
  "@types/mocha": "10.0.10",
40
40
  "@types/node": "20.17.51",
41
41
  "chai": "5.2.0",
42
42
  "fs": "0.0.1-security",
43
+ "luxon": "^3.7.1",
43
44
  "mocha": "11.5.0",
44
- "mocha-junit-reporter": "2.2.1",
45
- "luxon": "^3.7.1",
45
+ "mocha-junit-reporter": "2.2.1",
46
46
  "mongodb": "6.16.0",
47
- "rxjs": "6.6.7",
48
- "rxjs-compat": "6.6.7",
49
47
  "sails": "1.5.14",
50
48
  "stream": "0.0.3",
51
49
  "typescript": "5.5.4",
@@ -57,7 +55,8 @@
57
55
  "uuid": "8.3.0"
58
56
  },
59
57
  "peerDependencies": {
60
- "luxon": ">=3.0.0"
58
+ "luxon": ">=3.0.0",
59
+ "rxjs": ">=7.0.0"
61
60
  },
62
61
  "publishConfig": {
63
62
  "access": "public"
@@ -1,6 +1,4 @@
1
- import {
2
- Observable
3
- } from 'rxjs/Rx';
1
+ import { Observable, of } from 'rxjs';
4
2
 
5
3
  import { Sails, Model } from "sails";
6
4
  import { v1 as uuidv1 } from 'uuid';
@@ -764,9 +762,9 @@ export module Services {
764
762
  reqs.push(this.addAndRemoveDatastreams(oid, fileIdsAdded, removeIds));
765
763
  });
766
764
  if (_.isEmpty(reqs)) {
767
- reqs.push(Observable.of({ "request": "dummy" }));
765
+ reqs.push(of({ "request": "dummy" }));
768
766
  }
769
- return Observable.of(reqs);
767
+ return of(reqs);
770
768
  });
771
769
  }
772
770