vue-module-class-generator
Advanced tools
Comparing version 0.2.1 to 0.3.0
@@ -5,2 +5,7 @@ # Change Log | ||
<a name="0.3.0"></a> | ||
# [0.3.0](https://github.com/dimensi/vue-module-class-generator/compare/v0.2.1...v0.3.0) (2018-10-25) | ||
<a name="0.2.1"></a> | ||
@@ -7,0 +12,0 @@ ## [0.2.1](https://github.com/dimensi/vue-module-class-generator/compare/v0.2.0...v0.2.1) (2018-10-25) |
/*! | ||
* vue-module-class-generator v0.2.1 | ||
* vue-module-class-generator v0.3.0 | ||
* (c) 2018-present Nikita Nafranets <eddimensi@gmail.com> | ||
@@ -10,6 +10,2 @@ * Released under the MIT License. | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var camelCase = _interopDefault(require('camelcase')); | ||
function _typeof(obj) { | ||
@@ -38,2 +34,17 @@ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { | ||
}; | ||
var firstUpperCase = function firstUpperCase(text) { | ||
return text.substring(0, 1).toUpperCase() + text.substring(1); | ||
}; | ||
var firstLowerCase = function firstLowerCase(text) { | ||
return text.substring(0, 1).toLowerCase() + text.substring(1); | ||
}; | ||
var camelCase = function camelCase(inputs) { | ||
return inputs.reduce(function (acc, text, i) { | ||
if (i === 0) return acc + firstLowerCase(text); | ||
return acc + firstUpperCase(text); | ||
}, ''); | ||
}; | ||
var createJoinModeKey = function createJoinModeKey(config) { | ||
@@ -40,0 +51,0 @@ return config.prefix.modKey ? function (key, value) { |
/*! | ||
* vue-module-class-generator v0.2.1 | ||
* vue-module-class-generator v0.3.0 | ||
* (c) 2018-present Nikita Nafranets <eddimensi@gmail.com> | ||
* Released under the MIT License. | ||
*/ | ||
import camelCase from 'camelcase'; | ||
function _typeof(obj) { | ||
@@ -31,2 +29,17 @@ if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { | ||
}; | ||
var firstUpperCase = function firstUpperCase(text) { | ||
return text.substring(0, 1).toUpperCase() + text.substring(1); | ||
}; | ||
var firstLowerCase = function firstLowerCase(text) { | ||
return text.substring(0, 1).toLowerCase() + text.substring(1); | ||
}; | ||
var camelCase = function camelCase(inputs) { | ||
return inputs.reduce(function (acc, text, i) { | ||
if (i === 0) return acc + firstLowerCase(text); | ||
return acc + firstUpperCase(text); | ||
}, ''); | ||
}; | ||
var createJoinModeKey = function createJoinModeKey(config) { | ||
@@ -33,0 +46,0 @@ return config.prefix.modKey ? function (key, value) { |
{ | ||
"name": "vue-module-class-generator", | ||
"version": "0.2.1", | ||
"version": "0.3.0", | ||
"description": "Vue class helper", | ||
@@ -39,5 +39,3 @@ "main": "dist/index.cjs.js", | ||
}, | ||
"dependencies": { | ||
"camelcase": "^5.0.0" | ||
} | ||
"dependencies": {} | ||
} |
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
11262
0
212
- Removedcamelcase@^5.0.0
- Removedcamelcase@5.3.1(transitive)