@develit-services/blockchain 0.4.0 → 0.4.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.
@@ -29,7 +29,15 @@ function defineBlockchainServiceWrangler(config) {
29
29
  vars: {
30
30
  ...envCfg.vars,
31
31
  ENVIRONMENT: envName
32
- }
32
+ },
33
+ d1_databases: [
34
+ {
35
+ binding: "BLOCKCHAIN_D1",
36
+ database_name: `${project}-blockchain-${envName}`,
37
+ database_id: envCfg.d1.id,
38
+ migrations_dir: "./src/database/migrations"
39
+ }
40
+ ]
33
41
  };
34
42
  }
35
43
  return base;
@@ -27,7 +27,15 @@ function defineBlockchainServiceWrangler(config) {
27
27
  vars: {
28
28
  ...envCfg.vars,
29
29
  ENVIRONMENT: envName
30
- }
30
+ },
31
+ d1_databases: [
32
+ {
33
+ binding: "BLOCKCHAIN_D1",
34
+ database_name: `${project}-blockchain-${envName}`,
35
+ database_id: envCfg.d1.id,
36
+ migrations_dir: "./src/database/migrations"
37
+ }
38
+ ]
31
39
  };
32
40
  }
33
41
  return base;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@develit-services/blockchain",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "author": "Develit.io s.r.o.",
5
5
  "type": "module",
6
6
  "exports": {