@buoy-gg/angular 7.0.78 → 7.0.80
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/lib/builders/plugin.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{autoModule as
|
|
1
|
+
import{autoModule as j}from"./auto-module.mjs";import{findInstalledTools as O,installedToolsModule as S}from"@buoy-gg/core/vite";import{createRequire as m}from"node:module";import{existsSync as k,readFileSync as y,watchFile as R,unwatchFile as x}from"node:fs";import{dirname as d,join as f}from"node:path";export const installedToolsId="@buoy-gg/core/web/installed-tools";export function toolPlugin(t,r={}){const{found:n,missingWeb:s}=O(t,r);return{found:n,missingWeb:s,plugin:{name:"buoy-angular-tools",setup(e){const i=r.disabled||e.initialOptions?.platform==="node"||e.initialOptions?.define?.ngServerMode==="true";const a=m(f(t,"package.json"));e.onResolve({filter:/^@buoy-gg\//},l=>{if(!i)return;const[g,c,...p]=l.path.split("/");let b;try{b=a.resolve(`${g}/${c}/package.json`)}catch{return}const h=JSON.parse(y(b,"utf8"));const w=h.exports?.[p.length?"./"+p.join("/"):"."];const u=w?.["buoy-disabled"];if(typeof u==="string")return{path:f(d(b),u)}});if(i)return;const o=f(r.sourceRoot||f(t,"src"),"environments/buoy.ts");e.onResolve({filter:/^#buoy-angular-key$/},()=>({path:o,namespace:"buoy-angular-key"}));e.onLoad({filter:/.*/,namespace:"buoy-angular-key"},()=>({contents:y(o,"utf8"),loader:"ts",resolveDir:d(o),watchFiles:[o]}));if(r.release){e.onResolve({filter:/^@buoy-gg\/angular\/register$/},()=>({path:"register",namespace:"buoy-release-hook"}));e.onLoad({filter:/.*/,namespace:"buoy-release-hook"},()=>({contents:"import { registerBrowserNetwork } from '@buoy-gg/core/web/register-network'; registerBrowserNetwork({enableInRelease:true});",loader:"js",resolveDir:t}))}e.onResolve({filter:/^#buoy-angular-auto$/},()=>({path:"auto",namespace:"buoy-angular-auto"}));e.onLoad({filter:/.*/,namespace:"buoy-angular-auto"},()=>({contents:j(t,n,r),loader:"js",resolveDir:t}));e.onResolve({filter:/^crypto$/},l=>l.importer.includes("/tweetnacl/")?{path:"crypto",namespace:"buoy-browser-empty"}:void 0);e.onLoad({filter:/.*/,namespace:"buoy-browser-empty"},()=>({contents:"export default {};",loader:"js"}));e.onResolve({filter:/^@buoy-gg\/core\/web\/installed-tools$/},()=>({path:installedToolsId,namespace:"buoy-angular"}));e.onLoad({filter:/.*/,namespace:"buoy-angular"},()=>({contents:S(n),loader:"js",resolveDir:t}))}}}}export function buildOptions(t,r=""){const{buoy:n,buoyRelease:s=false,...e}=t;const i=n?.release??s;const a=typeof e.optimization==="object"?e.optimization.scripts!==false:e.optimization!==false;const o=!i&&(a||r.split(",").includes("production"));const l=typeof e.polyfills==="string"?[e.polyfills]:e.polyfills??[];return{disabled:o,options:{...e,...!o?{polyfills:[...new Set(["@buoy-gg/angular/register",...l])]}:{}}}}export function watchTools(t,r){let n=t;while(!k(f(n,"package.json"))&&n!==d(n))n=d(n);const s=f(n,"package.json");const e=()=>{try{const l=JSON.parse(y(s,"utf8"));return JSON.stringify(Object.entries({...l.dependencies,...l.devDependencies}).filter(([g])=>g.startsWith("@buoy-gg/")).sort())}catch{return""}};const i=e();let a=false;const o=()=>{if(!a&&e()!==i){a=true;r.info("[Buoy] Tools changed. Restart ng serve to load the new list.")}};R(s,{persistent:false,interval:1e3},o);return()=>x(s,o)}export function hiddenDependencies(t,r){const n=m(f(t,"package.json"));const s=new Set;const e=new Set;const i=new Map;function a(o,l,g=false){let c;try{c=l.resolve(o+"/package.json")}catch{try{let u=d(l.resolve(o));while(u!==d(u)){const v=f(u,"package.json");if(k(v)&&JSON.parse(y(v,"utf8")).name===o){c=v;break}u=d(u)}}catch{return}}if(!c||s.has(c))return;let p=t;let b=false;while(p!==d(p)){if(k(f(p,"node_modules",o))){b=true;break}p=d(p)}if(g&&b){i.set(o,c);return}s.add(c);if(!b)e.add(o);const h=JSON.parse(y(c,"utf8"));const w=m(c);for(const u of Object.keys(h.dependencies??{}))a(u,w);for(const u of Object.keys(h.peerDependencies??{}))if(!h.peerDependenciesMeta?.[u]?.optional)a(u,w,true)}for(const o of r)a(o,n);for(let o=true;o;){o=false;for(const[l,g]of i){const c=JSON.parse(y(g,"utf8"));if(![...Object.keys(c.dependencies??{}),...Object.keys(c.peerDependencies??{})].some(p=>e.has(p)))continue;i.delete(l);e.add(l);o=true;a(l,m(g))}}return[...e]}export function prebundleOptions(t,r,n){if(t===false)return false;return{...typeof t==="object"?t:{},exclude:[...new Set([...t?.exclude??[],"@buoy-gg","@buoy-gg/angular","@buoy-gg/core",installedToolsId,...r.map(s=>s.id),...n?hiddenDependencies(n,["@buoy-gg/angular","@buoy-gg/core",...r.map(s=>s.id)]):[]])]}}export function warnReactVersions(t,r){const n=m(f(t,"package.json"));let s;try{s=m(n.resolve("@buoy-gg/angular/package.json"))}catch{s=n}try{const e=s.resolve("react-dom/package.json");const i=JSON.parse(y(e,"utf8")).version;const a=JSON.parse(y(m(e).resolve("react/package.json"),"utf8")).version;if(a!==i)r.warn(`[Buoy] React ${a} and React DOM ${i} do not match. Buoy may fail to load. Use the same version for both.`);return{react:a,reactDom:i}}catch{return void 0}}
|
|
@@ -1,114 +1,114 @@
|
|
|
1
1
|
[
|
|
2
2
|
{
|
|
3
3
|
"id": "core",
|
|
4
|
-
"version": "7.0.
|
|
4
|
+
"version": "7.0.80"
|
|
5
5
|
},
|
|
6
6
|
{
|
|
7
7
|
"id": "env",
|
|
8
|
-
"version": "7.0.
|
|
8
|
+
"version": "7.0.80"
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
11
|
"id": "events",
|
|
12
|
-
"version": "7.0.
|
|
12
|
+
"version": "7.0.80"
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
"id": "console",
|
|
16
|
-
"version": "7.0.
|
|
16
|
+
"version": "7.0.80"
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
"id": "sentry",
|
|
20
|
-
"version": "7.0.
|
|
20
|
+
"version": "7.0.80"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
"id": "time-machine",
|
|
24
|
-
"version": "7.0.
|
|
24
|
+
"version": "7.0.80"
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
"id": "clock",
|
|
28
|
-
"version": "7.0.
|
|
28
|
+
"version": "7.0.80"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"id": "permissions",
|
|
32
|
-
"version": "7.0.
|
|
32
|
+
"version": "7.0.80"
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
"id": "lifecycle",
|
|
36
|
-
"version": "7.0.
|
|
36
|
+
"version": "7.0.80"
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
"id": "location",
|
|
40
|
-
"version": "7.0.
|
|
40
|
+
"version": "7.0.80"
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
"id": "scenarios",
|
|
44
|
-
"version": "7.0.
|
|
44
|
+
"version": "7.0.80"
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"id": "ask-buoy",
|
|
48
|
-
"version": "7.0.
|
|
48
|
+
"version": "7.0.80"
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
"id": "network",
|
|
52
|
-
"version": "7.0.
|
|
52
|
+
"version": "7.0.80"
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
"id": "storage",
|
|
56
|
-
"version": "7.0.
|
|
56
|
+
"version": "7.0.80"
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
"id": "route-events",
|
|
60
|
-
"version": "7.0.
|
|
60
|
+
"version": "7.0.80"
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
"id": "react-query",
|
|
64
|
-
"version": "7.0.
|
|
64
|
+
"version": "7.0.80"
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
"id": "redux",
|
|
68
|
-
"version": "7.0.
|
|
68
|
+
"version": "7.0.80"
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
"id": "zustand",
|
|
72
|
-
"version": "7.0.
|
|
72
|
+
"version": "7.0.80"
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
"id": "jotai",
|
|
76
|
-
"version": "7.0.
|
|
76
|
+
"version": "7.0.80"
|
|
77
77
|
},
|
|
78
78
|
{
|
|
79
79
|
"id": "highlight-updates",
|
|
80
|
-
"version": "7.0.
|
|
80
|
+
"version": "7.0.80"
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
83
|
"id": "image-overlay",
|
|
84
|
-
"version": "7.0.
|
|
84
|
+
"version": "7.0.80"
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
"id": "impersonate",
|
|
88
|
-
"version": "7.0.
|
|
88
|
+
"version": "7.0.80"
|
|
89
89
|
},
|
|
90
90
|
{
|
|
91
91
|
"id": "perf-monitor",
|
|
92
|
-
"version": "7.0.
|
|
92
|
+
"version": "7.0.80"
|
|
93
93
|
},
|
|
94
94
|
{
|
|
95
95
|
"id": "js-top",
|
|
96
|
-
"version": "7.0.
|
|
96
|
+
"version": "7.0.80"
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
99
|
"id": "images",
|
|
100
|
-
"version": "7.0.
|
|
100
|
+
"version": "7.0.80"
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
103
|
"id": "assets",
|
|
104
|
-
"version": "7.0.
|
|
104
|
+
"version": "7.0.80"
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
107
|
"id": "tv-remote",
|
|
108
|
-
"version": "7.0.
|
|
108
|
+
"version": "7.0.80"
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
111
|
"id": "focus-inspector",
|
|
112
|
-
"version": "7.0.
|
|
112
|
+
"version": "7.0.80"
|
|
113
113
|
}
|
|
114
114
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buoy-gg/angular",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.80",
|
|
4
4
|
"description": "Run Buoy in an Angular app.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"react": "^19.2.0",
|
|
49
49
|
"react-dom": "^19.2.0",
|
|
50
50
|
"react-native-web": "^0.21.2",
|
|
51
|
-
"@buoy-gg/
|
|
52
|
-
"@buoy-gg/
|
|
51
|
+
"@buoy-gg/core": "^7.0.80",
|
|
52
|
+
"@buoy-gg/shared-ui": "^7.0.80"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@angular/core": ">=19 <23",
|