@codemod-utils/ember-cli-string
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -1,2 +0,1 @@ | ||
export declare function classifyOriginal(value: string): string; | ||
export declare function classify(value: string): string; |
/* https://github.com/ember-cli/ember-cli-string-utils/blob/v1.1.0/index.js */ | ||
/* https://github.com/emberjs/ember.js/blob/v4.12.1/blueprints/component/index.js#L255-L256 */ | ||
import { camelize } from './camelize.js'; | ||
export function classifyOriginal(value) { | ||
const tokens = value.split('.'); | ||
export function classify(value) { | ||
const tokens = value.replace(/\//g, '-').split('.'); | ||
const tokensTransformed = tokens.map((token) => { | ||
@@ -12,4 +12,1 @@ const camelized = camelize(token); | ||
} | ||
export function classify(value) { | ||
return classifyOriginal(value.replace(/\//g, '-')); | ||
} |
{ | ||
"name": "@codemod-utils/ember-cli-string", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Utilities for string, as used by Ember CLI", | ||
@@ -43,9 +43,9 @@ "keywords": [ | ||
"concurrently": "^8.2.0", | ||
"eslint": "^8.43.0", | ||
"prettier": "^2.8.8", | ||
"typescript": "^5.1.3", | ||
"eslint": "^8.44.0", | ||
"prettier": "^3.0.0", | ||
"typescript": "^5.1.6", | ||
"@shared-configs/typescript": "0.0.0", | ||
"@codemod-utils/tests": "0.2.3", | ||
"@shared-configs/prettier": "0.0.0", | ||
"@shared-configs/eslint-config-node": "0.0.0" | ||
"@shared-configs/eslint-config-node": "0.0.0", | ||
"@codemod-utils/tests": "0.2.5", | ||
"@shared-configs/prettier": "0.0.0" | ||
}, | ||
@@ -52,0 +52,0 @@ "engines": { |
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
6043
38