@webiny/handler-db 0.0.0-unstable.97a151f74d → 0.0.0-unstable.99666aeb00

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 (3) hide show
  1. package/index.js +0 -5
  2. package/index.js.map +1 -1
  3. package/package.json +11 -11
package/index.js CHANGED
@@ -4,11 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _db = require("@webiny/db");
9
-
10
8
  var _api = require("@webiny/api");
11
-
12
9
  /**
13
10
  * TODO: remove this package.
14
11
  */
@@ -17,9 +14,7 @@ var _default = args => {
17
14
  if (context.db) {
18
15
  return;
19
16
  }
20
-
21
17
  context.db = new _db.Db(args);
22
18
  })];
23
19
  };
24
-
25
20
  exports.default = _default;
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["args","ContextPlugin","context","db","Db"],"sources":["index.ts"],"sourcesContent":["import { Db } from \"@webiny/db\";\nimport { ContextPlugin } from \"@webiny/api\";\nimport { DbContext } from \"./types\";\n\n/**\n * TODO: remove this package.\n */\nexport default (args: any) => {\n return [\n new ContextPlugin<DbContext>(context => {\n if (context.db) {\n return;\n }\n context.db = new Db(args);\n })\n ];\n};\n"],"mappings":";;;;;;;AAAA;;AACA;;AAGA;AACA;AACA;eACgBA,IAAD,IAAe;EAC1B,OAAO,CACH,IAAIC,kBAAJ,CAA6BC,OAAO,IAAI;IACpC,IAAIA,OAAO,CAACC,EAAZ,EAAgB;MACZ;IACH;;IACDD,OAAO,CAACC,EAAR,GAAa,IAAIC,MAAJ,CAAOJ,IAAP,CAAb;EACH,CALD,CADG,CAAP;AAQH,C"}
1
+ {"version":3,"names":["args","ContextPlugin","context","db","Db"],"sources":["index.ts"],"sourcesContent":["import { Db } from \"@webiny/db\";\nimport { ContextPlugin } from \"@webiny/api\";\nimport { DbContext } from \"./types\";\n\n/**\n * TODO: remove this package.\n */\nexport default (args: any) => {\n return [\n new ContextPlugin<DbContext>(context => {\n if (context.db) {\n return;\n }\n context.db = new Db(args);\n })\n ];\n};\n"],"mappings":";;;;;;AAAA;AACA;AAGA;AACA;AACA;AAFA,eAGgBA,IAAS,IAAK;EAC1B,OAAO,CACH,IAAIC,kBAAa,CAAYC,OAAO,IAAI;IACpC,IAAIA,OAAO,CAACC,EAAE,EAAE;MACZ;IACJ;IACAD,OAAO,CAACC,EAAE,GAAG,IAAIC,MAAE,CAACJ,IAAI,CAAC;EAC7B,CAAC,CAAC,CACL;AACL,CAAC;AAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webiny/handler-db",
3
- "version": "0.0.0-unstable.97a151f74d",
3
+ "version": "0.0.0-unstable.99666aeb00",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -10,17 +10,17 @@
10
10
  "description": "Webiny API plugin that provides a db driver for DynamoDB.",
11
11
  "author": "Webiny Ltd.",
12
12
  "dependencies": {
13
- "@babel/runtime": "7.19.0",
14
- "@webiny/api": "0.0.0-unstable.97a151f74d",
15
- "@webiny/db": "0.0.0-unstable.97a151f74d"
13
+ "@babel/runtime": "7.20.13",
14
+ "@webiny/api": "0.0.0-unstable.99666aeb00",
15
+ "@webiny/db": "0.0.0-unstable.99666aeb00"
16
16
  },
17
17
  "devDependencies": {
18
- "@babel/cli": "^7.19.3",
19
- "@babel/core": "^7.19.3",
20
- "@babel/preset-env": "^7.19.4",
21
- "@webiny/cli": "^0.0.0-unstable.97a151f74d",
22
- "@webiny/project-utils": "^0.0.0-unstable.97a151f74d",
23
- "rimraf": "^3.0.2",
18
+ "@babel/cli": "7.20.7",
19
+ "@babel/core": "7.20.12",
20
+ "@babel/preset-env": "7.20.2",
21
+ "@webiny/cli": "0.0.0-unstable.99666aeb00",
22
+ "@webiny/project-utils": "0.0.0-unstable.99666aeb00",
23
+ "rimraf": "3.0.2",
24
24
  "typescript": "4.7.4"
25
25
  },
26
26
  "publishConfig": {
@@ -31,5 +31,5 @@
31
31
  "build": "yarn webiny run build",
32
32
  "watch": "yarn webiny run watch"
33
33
  },
34
- "gitHead": "97a151f74d8c5679323989fcc8cc7036be0f150e"
34
+ "gitHead": "99666aeb00056c56292eeb5dbb6aba7fda2439e2"
35
35
  }