svelte-dev-helper
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -7,4 +7,10 @@ import Registry from './registry'; | ||
function capitalize(str) { | ||
return str[0].toUpperCase() + str.slice(1); | ||
} | ||
function getDebugName(id) { | ||
return `<${id.split('/').pop().split('.').shift()}>`; | ||
const posixID = id.replace(/[/\\]/g, '/'); | ||
const name = posixID.split('/').pop().split('.').shift(); | ||
return `<${capitalize(name)}>`; | ||
} | ||
@@ -11,0 +17,0 @@ |
{ | ||
"name": "svelte-dev-helper", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Helper for svelte components to ease development", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -34,3 +34,3 @@ /* global describe, it */ | ||
const id = 'fixtures/MockComponent.html'; | ||
const id = 'fixtures\\mockComponent.html'; | ||
const allMethods = 'get,fire,observe,on,set,teardown,_recompute,_set,_mount,_unmount,destroy,_register,_rerender'.split(','); | ||
@@ -37,0 +37,0 @@ const straightProxiedMethods = allMethods.slice(0,7); |
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
18705
385