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

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