quick-methods
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -1,35 +0,5 @@ | ||
function copy(string) { | ||
import StringM from './String' | ||
if (typeof string !== 'string') { | ||
console.error('Please enter a string parameter') | ||
return false | ||
} | ||
let input = null | ||
input = document.getElementById('quick-input-select') | ||
if (input === null) { | ||
input = document.createElement('input') | ||
input.type = 'text' | ||
input.id = 'quick-input-select' | ||
} | ||
input.style.left = "-1000px"; | ||
input.style.position = "absolute"; | ||
document.body.appendChild(input) | ||
input.value = string | ||
input.select() | ||
if (document.execCommand) { | ||
return document.execCommand('copy') | ||
} else { | ||
console.error('Current browsers do not support exeCommand, please use chrome') | ||
} | ||
return false | ||
} | ||
export default { | ||
copy | ||
...StringM | ||
} |
{ | ||
"name": "quick-methods", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "", | ||
@@ -13,3 +13,3 @@ "main": "index.js", | ||
"library": "webpack", | ||
"prepublish": "npm run library", | ||
"prepublish": "npm run library && npm version patch", | ||
"dev": "webpack-dev-server --config webpack.config.dev.js" | ||
@@ -16,0 +16,0 @@ }, |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
13260
18
289
1
28
1