@onekeyfe/cross-inpage-provider-core
Advanced tools
Comparing version 0.0.9 to 0.0.10
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
/* eslint-disable @typescript-eslint/ban-ts-comment */ | ||
function createCodeWithScriptTag({ code }) { | ||
@@ -19,7 +20,7 @@ // script id check, only inject once. | ||
const s = document.createElement('script'); | ||
s.setAttribute('async', 'false'); | ||
s.setAttribute('defer', 'false'); | ||
s.setAttribute('data-onekey-injected', 'true'); | ||
s.removeAttribute('async'); | ||
s.removeAttribute('defer'); | ||
s.setAttribute('data-onekey-injected', 'yes'); | ||
if (code) { | ||
s.textContent = JSON.stringify(code); | ||
s.textContent = code; | ||
} | ||
@@ -26,0 +27,0 @@ if (file) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const version = '0.0.9'; | ||
const version = '0.0.10'; | ||
const versionBuild = '2020-0101-1'; | ||
@@ -5,0 +5,0 @@ exports.default = { |
@@ -0,1 +1,2 @@ | ||
/* eslint-disable @typescript-eslint/ban-ts-comment */ | ||
function createCodeWithScriptTag({ code }) { | ||
@@ -17,7 +18,7 @@ // script id check, only inject once. | ||
const s = document.createElement('script'); | ||
s.setAttribute('async', 'false'); | ||
s.setAttribute('defer', 'false'); | ||
s.setAttribute('data-onekey-injected', 'true'); | ||
s.removeAttribute('async'); | ||
s.removeAttribute('defer'); | ||
s.setAttribute('data-onekey-injected', 'yes'); | ||
if (code) { | ||
s.textContent = JSON.stringify(code); | ||
s.textContent = code; | ||
} | ||
@@ -24,0 +25,0 @@ if (file) { |
@@ -1,2 +0,2 @@ | ||
const version = '0.0.9'; | ||
const version = '0.0.10'; | ||
const versionBuild = '2020-0101-1'; | ||
@@ -3,0 +3,0 @@ export default { |
{ | ||
"name": "@onekeyfe/cross-inpage-provider-core", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"keywords": [ | ||
@@ -32,5 +32,5 @@ "cross-inpage-provider" | ||
"dependencies": { | ||
"@onekeyfe/cross-inpage-provider-errors": "^0.0.9", | ||
"@onekeyfe/cross-inpage-provider-events": "^0.0.9", | ||
"@onekeyfe/cross-inpage-provider-types": "^0.0.9", | ||
"@onekeyfe/cross-inpage-provider-errors": "^0.0.10", | ||
"@onekeyfe/cross-inpage-provider-events": "^0.0.10", | ||
"@onekeyfe/cross-inpage-provider-types": "^0.0.10", | ||
"events": "^3.3.0", | ||
@@ -40,3 +40,3 @@ "lodash": "^4.17.21", | ||
}, | ||
"gitHead": "1a531ca7434eca9b6704760cb0221df3cfdbe4d5" | ||
"gitHead": "3aee90f0d27a9e231176d5b6568ac6012282a6e1" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
146089
3571
+ Added@onekeyfe/cross-inpage-provider-errors@0.0.10(transitive)
+ Added@onekeyfe/cross-inpage-provider-events@0.0.10(transitive)
+ Added@onekeyfe/cross-inpage-provider-types@0.0.10(transitive)
- Removed@onekeyfe/cross-inpage-provider-errors@0.0.9(transitive)
- Removed@onekeyfe/cross-inpage-provider-events@0.0.9(transitive)
- Removed@onekeyfe/cross-inpage-provider-types@0.0.9(transitive)