@learncard/network-brain-client 1.1.12 → 1.1.13

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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @learncard/network-brain-client
2
2
 
3
+ ## 1.1.13
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`2e80eb8`](https://github.com/learningeconomy/LearnCard/commit/2e80eb83fc5ee2b954b40cc020ad5c790b571209), [`b7ecae8`](https://github.com/learningeconomy/LearnCard/commit/b7ecae8ddb79419d998f8089213534eb2ecddf03), [`2e80eb8`](https://github.com/learningeconomy/LearnCard/commit/2e80eb83fc5ee2b954b40cc020ad5c790b571209)]:
8
+ - @learncard/network-brain-service@1.4.9
9
+
3
10
  ## 1.1.12
4
11
 
5
12
  ### Patch Changes
package/esbuild.mjs CHANGED
@@ -20,6 +20,6 @@ if (process.env.NODE_ENV !== 'production') {
20
20
  finalBuildObj.minify = false;
21
21
  }
22
22
 
23
- build(finalBuildObj).then(() => {
23
+ await build(finalBuildObj).then(() => {
24
24
  console.log(`🎁 Done building main bundle! (${Date.now() - startTime}ms)`);
25
25
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@learncard/network-brain-client",
3
- "version": "1.1.12",
3
+ "version": "1.1.13",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "./dist/brain-client.esm.js",
@@ -11,12 +11,12 @@
11
11
  "devDependencies": {
12
12
  "dts-bundle-generator": "^6.10.0",
13
13
  "esbuild": "^0.16.16",
14
- "@learncard/types": "5.2.9"
14
+ "@learncard/types": "5.3.0"
15
15
  },
16
16
  "dependencies": {
17
17
  "@trpc/client": "^10.17.0",
18
18
  "@trpc/server": "^10.17.0",
19
- "@learncard/network-brain-service": "1.4.8"
19
+ "@learncard/network-brain-service": "1.4.9"
20
20
  },
21
21
  "scripts": {
22
22
  "build": "node ./scripts/build.mjs && shx cp ./scripts/mixedEntypoint.js ./dist/index.js && tsc --p tsconfig.json"
package/scripts/build.mjs CHANGED
@@ -65,25 +65,19 @@ function asyncRimraf(path) {
65
65
  });
66
66
  }
67
67
 
68
- function main() {
69
- Promise.all(
70
- configurations.map(config => {
71
- var dir = config.outdir || path.dirname(config.outfile);
72
- asyncRimraf(dir).catch(() => {
73
- console.log('Unable to delete directory', dir);
74
- });
75
- })
76
- ).then(() => {
77
- Promise.all(configurations.map(config => esbuild.build(config)))
78
- .then(() => {
79
- console.log('✔ Build successful');
80
- process.exit(0);
81
- })
82
- .catch(err => {
83
- console.error('❌ Build failed');
84
- process.exit(1);
85
- });
86
- });
87
- }
68
+ await Promise.all(
69
+ configurations.map(async config => {
70
+ var dir = config.outdir || path.dirname(config.outfile);
71
+ await asyncRimraf(dir).catch(() => {
72
+ console.log('Unable to delete directory', dir);
73
+ });
74
+ })
75
+ );
76
+
77
+ await Promise.all(configurations.map(config => esbuild.build(config))).catch(err => {
78
+ console.error('❌ Build failed');
79
+ process.exit(1);
80
+ });
88
81
 
89
- main();
82
+ console.log('✔ Build successful');
83
+ process.exit(0);