@storyous/mongodb 1.6.0 → 1.7.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.
Files changed (48) hide show
  1. package/README.md +134 -134
  2. package/lib/appData/index.d.ts +12 -12
  3. package/lib/appData/index.js +39 -39
  4. package/lib/appData/index.ts +48 -48
  5. package/lib/concurrentTask.d.ts +9 -9
  6. package/lib/concurrentTask.js +19 -19
  7. package/lib/concurrentTask.ts +30 -30
  8. package/lib/fixtures.d.ts +5 -5
  9. package/lib/fixtures.js +27 -27
  10. package/lib/fixtures.ts +36 -36
  11. package/lib/getCollection.d.ts +3 -3
  12. package/lib/getCollection.js +8 -8
  13. package/lib/getCollection.ts +5 -5
  14. package/lib/getMongoConfig.d.ts +6 -6
  15. package/lib/getMongoConfig.js +86 -85
  16. package/lib/getMongoConfig.ts +78 -78
  17. package/lib/getMongoLocker.d.ts +10 -10
  18. package/lib/getMongoLocker.js +52 -52
  19. package/lib/getMongoLocker.ts +71 -71
  20. package/lib/global-bundle.pem +2876 -2876
  21. package/lib/index.d.ts +14 -13
  22. package/lib/index.js +34 -31
  23. package/lib/index.ts +32 -29
  24. package/lib/migrations/Migration.d.ts +6 -6
  25. package/lib/migrations/Migration.js +21 -21
  26. package/lib/migrations/Migration.ts +29 -29
  27. package/lib/migrations/MigrationsStore.d.ts +13 -13
  28. package/lib/migrations/MigrationsStore.js +64 -64
  29. package/lib/migrations/MigrationsStore.ts +81 -81
  30. package/lib/migrations/runMigrations.d.ts +12 -12
  31. package/lib/migrations/runMigrations.js +49 -49
  32. package/lib/migrations/runMigrations.ts +57 -57
  33. package/lib/migrations/template.d.ts +3 -3
  34. package/lib/migrations/template.js +10 -10
  35. package/lib/migrations/template.ts +7 -7
  36. package/lib/mongoClient.d.ts +8 -8
  37. package/lib/mongoClient.js +17 -17
  38. package/lib/mongoClient.ts +25 -25
  39. package/lib/mongoErrorCodes.d.ts +6 -6
  40. package/lib/mongoErrorCodes.js +10 -10
  41. package/lib/mongoErrorCodes.ts +10 -10
  42. package/lib/mongoLocker.d.ts +3 -3
  43. package/lib/mongoLocker.js +16 -16
  44. package/lib/mongoLocker.ts +15 -15
  45. package/lib/withTransaction.d.ts +3 -3
  46. package/lib/withTransaction.js +20 -20
  47. package/lib/withTransaction.ts +24 -24
  48. package/package.json +50 -49
package/package.json CHANGED
@@ -1,49 +1,50 @@
1
- {
2
- "name": "@storyous/mongodb",
3
- "version": "1.6.0",
4
- "description": "",
5
- "homepage": "https://github.com/Storyous/mono-utils#readme",
6
- "license": "ISC",
7
- "main": "lib/index.js",
8
- "types": "lib/index.d.ts",
9
- "files": [
10
- "lib"
11
- ],
12
- "scripts": {
13
- "start": "tsc"
14
- },
15
- "mocha": {
16
- "recursive": true,
17
- "timeout": 15000,
18
- "extension": [
19
- "ts"
20
- ],
21
- "exit": true,
22
- "require": "ts-node/register"
23
- },
24
- "repository": {
25
- "type": "git",
26
- "url": "git+https://github.com/Storyous/mono-utils.git"
27
- },
28
- "bugs": {
29
- "url": "https://github.com/Storyous/mono-utils/issues"
30
- },
31
- "publishConfig": {
32
- "access": "public",
33
- "registry": "https://registry.npmjs.org/"
34
- },
35
- "dependencies": {
36
- "@storyous/errors": "^1.0.6",
37
- "@types/lodash": "^4.14.182",
38
- "lodash": "^4.17.21",
39
- "migrate": "^1.8.0",
40
- "winston": "^3.7.2"
41
- },
42
- "devDependencies": {
43
- "@types/sinon": "^10.0.11",
44
- "mongodb": "^4.9.0"
45
- },
46
- "peerDependencies": {
47
- "mongodb": ">=4 <5"
48
- }
49
- }
1
+ {
2
+ "name": "@storyous/mongodb",
3
+ "version": "1.7.1",
4
+ "description": "",
5
+ "homepage": "https://github.com/Storyous/mono-utils#readme",
6
+ "license": "ISC",
7
+ "main": "lib/index.js",
8
+ "types": "lib/index.d.ts",
9
+ "files": [
10
+ "lib"
11
+ ],
12
+ "scripts": {
13
+ "start": "tsc"
14
+ },
15
+ "mocha": {
16
+ "recursive": true,
17
+ "timeout": 15000,
18
+ "extension": [
19
+ "ts"
20
+ ],
21
+ "exit": true,
22
+ "require": "ts-node/register"
23
+ },
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "git+https://github.com/Storyous/mono-utils.git"
27
+ },
28
+ "bugs": {
29
+ "url": "https://github.com/Storyous/mono-utils/issues"
30
+ },
31
+ "publishConfig": {
32
+ "access": "public",
33
+ "registry": "https://registry.npmjs.org/"
34
+ },
35
+ "dependencies": {
36
+ "@storyous/errors": "^1.0.6",
37
+ "@types/lodash": "^4.14.182",
38
+ "lodash": "^4.17.21",
39
+ "migrate": "^1.8.0",
40
+ "winston": "^3.7.2"
41
+ },
42
+ "devDependencies": {
43
+ "@types/sinon": "^10.0.11",
44
+ "mongodb": "^4.9.0"
45
+ },
46
+ "peerDependencies": {
47
+ "mongodb": ">=4 <5"
48
+ },
49
+ "gitHead": "2bf9844f1310d9c0a64dcea6047d55b0cbcb359b"
50
+ }