quick-methods
Advanced tools
Comparing version 0.0.1 to 0.0.2
if(process.env.NODE_ENV === 'production'){ | ||
module.exports = require('./dist/quick-model.min.js') | ||
module.exports = require('./dist/quick-methods.min.js') | ||
} else { | ||
module.exports = require('./dist/quick-model.js') | ||
module.exports = require('./dist/quick-methods.js') | ||
} |
function copy(string) { | ||
if(typeof string !== 'string'){ | ||
if (typeof string !== 'string') { | ||
console.error('Please enter a string parameter') | ||
@@ -10,3 +10,3 @@ return false | ||
input = document.getElementById('quick-input-select') | ||
if (input === null) { | ||
@@ -18,2 +18,5 @@ input = document.createElement('input') | ||
input.style.left = "-1000px"; | ||
input.style.position = "absolute"; | ||
document.body.appendChild(input) | ||
@@ -23,3 +26,3 @@ | ||
input.select() | ||
if(document.execCommand){ | ||
if (document.execCommand) { | ||
return document.execCommand('copy') | ||
@@ -26,0 +29,0 @@ } else { |
{ | ||
"name": "quick-methods", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "", | ||
@@ -25,2 +25,3 @@ "main": "index.js", | ||
"babel-preset-env": "^1.7.0", | ||
"clean-webpack-plugin": "^3.0.0", | ||
"html-webpack-plugin": "^3.2.0", | ||
@@ -27,0 +28,0 @@ "jest": "^24.9.0", |
@@ -5,2 +5,3 @@ | ||
const TerserPlugin = require('terser-webpack-plugin'); | ||
const { CleanWebpackPlugin } = require('clean-webpack-plugin'); | ||
@@ -21,2 +22,5 @@ | ||
}, | ||
plugins: [ | ||
new CleanWebpackPlugin(), | ||
], | ||
optimization: { | ||
@@ -23,0 +27,0 @@ minimize: true, |
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
5418
129
17