@blueking/bk-user-selector 0.0.38-beta.5 → 0.0.38-beta.6

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": "@blueking/bk-user-selector",
3
- "version": "0.0.38-beta.5",
3
+ "version": "0.0.38-beta.6",
4
4
  "description": "蓝鲸用户选择器",
5
5
  "license": "MIT",
6
6
  "author": "Tencent BlueKing",
@@ -10681,13 +10681,15 @@ const jsonpRequest = (requestUrl, options = {}) => {
10681
10681
  const { timeout = 1e3 * 60 * 2, params } = options;
10682
10682
  const callbackName = generateCallbackName();
10683
10683
  const script = document.createElement("script");
10684
- let timeoutId;
10684
+ let timeoutId = null;
10685
10685
  script.setAttribute("type", "text/javascript");
10686
10686
  const cleanup = () => {
10687
10687
  if (timeoutId) {
10688
10688
  clearTimeout(timeoutId);
10689
10689
  }
10690
- if (script.parentNode) ;
10690
+ if (script.parentNode) {
10691
+ script.parentNode.removeChild(script);
10692
+ }
10691
10693
  if (window[callbackName]) {
10692
10694
  delete window[callbackName];
10693
10695
  }
@@ -17339,13 +17339,15 @@ ${$(r2)}`), n2;
17339
17339
  const { timeout = 1e3 * 60 * 2, params } = options;
17340
17340
  const callbackName = generateCallbackName();
17341
17341
  const script = document.createElement("script");
17342
- let timeoutId;
17342
+ let timeoutId = null;
17343
17343
  script.setAttribute("type", "text/javascript");
17344
17344
  const cleanup = () => {
17345
17345
  if (timeoutId) {
17346
17346
  clearTimeout(timeoutId);
17347
17347
  }
17348
- if (script.parentNode) ;
17348
+ if (script.parentNode) {
17349
+ script.parentNode.removeChild(script);
17350
+ }
17349
17351
  if (window[callbackName]) {
17350
17352
  delete window[callbackName];
17351
17353
  }
@@ -10703,13 +10703,15 @@ ${$(r2)}`), n2;
10703
10703
  const { timeout = 1e3 * 60 * 2, params } = options;
10704
10704
  const callbackName = generateCallbackName();
10705
10705
  const script = document.createElement("script");
10706
- let timeoutId;
10706
+ let timeoutId = null;
10707
10707
  script.setAttribute("type", "text/javascript");
10708
10708
  const cleanup = () => {
10709
10709
  if (timeoutId) {
10710
10710
  clearTimeout(timeoutId);
10711
10711
  }
10712
- if (script.parentNode) ;
10712
+ if (script.parentNode) {
10713
+ script.parentNode.removeChild(script);
10714
+ }
10713
10715
  if (window[callbackName]) {
10714
10716
  delete window[callbackName];
10715
10717
  }
@@ -11,13 +11,15 @@ const jsonpRequest = (requestUrl, options = {}) => {
11
11
  const { timeout = 1e3 * 60 * 2, params } = options;
12
12
  const callbackName = generateCallbackName();
13
13
  const script = document.createElement("script");
14
- let timeoutId;
14
+ let timeoutId = null;
15
15
  script.setAttribute("type", "text/javascript");
16
16
  const cleanup = () => {
17
17
  if (timeoutId) {
18
18
  clearTimeout(timeoutId);
19
19
  }
20
- if (script.parentNode) ;
20
+ if (script.parentNode) {
21
+ script.parentNode.removeChild(script);
22
+ }
21
23
  if (window[callbackName]) {
22
24
  delete window[callbackName];
23
25
  }
@@ -10710,13 +10710,15 @@ ${$(r2)}`), n2;
10710
10710
  const { timeout = 1e3 * 60 * 2, params } = options;
10711
10711
  const callbackName = generateCallbackName();
10712
10712
  const script = document.createElement("script");
10713
- let timeoutId;
10713
+ let timeoutId = null;
10714
10714
  script.setAttribute("type", "text/javascript");
10715
10715
  const cleanup = () => {
10716
10716
  if (timeoutId) {
10717
10717
  clearTimeout(timeoutId);
10718
10718
  }
10719
- if (script.parentNode) ;
10719
+ if (script.parentNode) {
10720
+ script.parentNode.removeChild(script);
10721
+ }
10720
10722
  if (window[callbackName]) {
10721
10723
  delete window[callbackName];
10722
10724
  }
@@ -16,13 +16,15 @@
16
16
  const { timeout = 1e3 * 60 * 2, params } = options;
17
17
  const callbackName = generateCallbackName();
18
18
  const script = document.createElement("script");
19
- let timeoutId;
19
+ let timeoutId = null;
20
20
  script.setAttribute("type", "text/javascript");
21
21
  const cleanup = () => {
22
22
  if (timeoutId) {
23
23
  clearTimeout(timeoutId);
24
24
  }
25
- if (script.parentNode) ;
25
+ if (script.parentNode) {
26
+ script.parentNode.removeChild(script);
27
+ }
26
28
  if (window[callbackName]) {
27
29
  delete window[callbackName];
28
30
  }