@learncard/network-brain-client 2.4.15 → 2.4.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@learncard/network-brain-client",
3
- "version": "2.4.15",
3
+ "version": "2.4.18",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "./dist/brain-client.esm.js",
@@ -15,8 +15,16 @@
15
15
  "@learncard/types": "5.9.2"
16
16
  },
17
17
  "dependencies": {
18
- "@trpc/client": "^11.3.0",
19
- "@learncard/network-brain-service": "3.7.3"
18
+ "@trpc/client": "11.3.0",
19
+ "@learncard/network-brain-service": "3.7.6"
20
+ },
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "https://github.com/learningeconomy/LearnCard"
24
+ },
25
+ "homepage": "https://github.com/learningeconomy/LearnCard/tree/main/packages/learn-card-network/brain-client/README.md",
26
+ "bugs": {
27
+ "url": "https://github.com/learningeconomy/LearnCard/issues"
20
28
  },
21
29
  "scripts": {
22
30
  "build": "node ./scripts/build.mjs && shx cp ./scripts/mixedEntypoint.js ./dist/index.js && tsc --p tsconfig.json"
package/scripts/build.mjs CHANGED
@@ -46,7 +46,11 @@ const configurations = [
46
46
  sourcemap: 'external',
47
47
  incremental: true,
48
48
  tsconfig: 'tsconfig.json',
49
- plugins: [nodeResolveExternal],
49
+ // For the ESM build, rely on esbuild's default resolution and
50
+ // bundle dependencies like @learncard/helpers directly, so we
51
+ // don't end up importing the CJS helpers build that uses
52
+ // dynamic require('query-string') in the browser.
53
+ plugins: [],
50
54
  entryPoints: ['src/index.ts'],
51
55
  format: 'esm',
52
56
  outfile: 'dist/brain-client.esm.js',