@ctx-core/svg-ui-svelte
Advanced tools
Comparing version 1.3.130 to 1.3.131
@@ -0,1 +1,5 @@ | ||
import getOuterHTML from 'dom-serializer' | ||
import { DomHandler, hasChildren } from 'domhandler' | ||
import { Parser } from 'htmlparser2' | ||
import { extname } from 'node:path' | ||
export const markup = markup_() | ||
@@ -7,5 +11,5 @@ export { markup as markup__markdown } | ||
*/ | ||
export const markup_ = ( | ||
export function markup_( | ||
/** @type {markup_builder_opts__T} */builder_opts = {} | ||
)=>{ | ||
) { | ||
const { | ||
@@ -24,5 +28,5 @@ match_ = ({ filename })=>extname(filename) === '.svg', | ||
const attribs_txt = | ||
map( | ||
keys(attribs), | ||
key=>`${key}=${JSON.stringify(attribs[key])}`).join(' ') | ||
Object.keys(attribs).map( | ||
key=> | ||
`${key}=${JSON.stringify(attribs[key])}`).join(' ') | ||
code = ` | ||
@@ -29,0 +33,0 @@ <script context="module"> |
145
package.json
{ | ||
"name": "@ctx-core/svg-ui-svelte", | ||
"version": "1.3.130", | ||
"description": "ctx-core svg", | ||
"keywords": [ | ||
"ctx-core", | ||
"svg" | ||
], | ||
"homepage": "https://github.com/ctx-core/svg-ui-svelte#readme", | ||
"bugs": { | ||
"url": "https://github.com/ctx-core/svg-ui-svelte/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/ctx-core/svg-ui-svelte.git" | ||
}, | ||
"license": "Apache-2.0", | ||
"author": "Brian Takita", | ||
"type": "module", | ||
"main": "./index.js", | ||
"files": [ | ||
"*.d.ts", | ||
"*.js", | ||
"*.json", | ||
"Icon", | ||
"icon_name_svg", | ||
"markup", | ||
"markup_", | ||
"svg_preprocess" | ||
], | ||
"types": "./index.d.ts", | ||
"exports": { | ||
".": { | ||
"browser": "./index.browser.js", | ||
"default": "./index.js", | ||
"import": "./index.js" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"scripts": { | ||
"build": ":", | ||
"clean": ":", | ||
"exec": "$@", | ||
"prepublishOnly": "pnpm clean && pnpm build && pnpm test", | ||
"test": "pnpm test:unit && pnpm test:types", | ||
"test:types": "check-dts", | ||
"test:unit": "tsx node_modules/uvu/bin.js . '\\.test\\.(ts|js)$'", | ||
"test:unit:coverage": "c8 pnpm test:unit" | ||
}, | ||
"dependencies": { | ||
"ctx-core": "^5.29.0", | ||
"dom-serializer": "^2.0.0", | ||
"domhandler": "^5.0.3", | ||
"htmlparser2": "^9.1.0" | ||
}, | ||
"devDependencies": { | ||
"@ctx-core/svg": "^19.0.45", | ||
"@sveltejs/adapter-auto": "next", | ||
"@sveltejs/kit": "next", | ||
"c8": "^9.1.0", | ||
"check-dts": "^0.7.2", | ||
"locate-character": "^3.0.0", | ||
"svelte": "^4.2.9", | ||
"svelte-preprocess": "^5.1.3", | ||
"tsx": "^4.7.0", | ||
"typescript": "next", | ||
"uvu": "^0.5.6" | ||
}, | ||
"publishConfig": { | ||
"access": "public", | ||
"cache": "~/.npm" | ||
}, | ||
"sideEffects": false | ||
} | ||
"name": "@ctx-core/svg-ui-svelte", | ||
"version": "1.3.131", | ||
"description": "ctx-core svg", | ||
"keywords": [ | ||
"ctx-core", | ||
"svg" | ||
], | ||
"homepage": "https://github.com/ctx-core/svg-ui-svelte#readme", | ||
"bugs": { | ||
"url": "https://github.com/ctx-core/svg-ui-svelte/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/ctx-core/svg-ui-svelte.git" | ||
}, | ||
"license": "Apache-2.0", | ||
"author": "Brian Takita", | ||
"type": "module", | ||
"main": "./index.js", | ||
"files": [ | ||
"*.d.ts", | ||
"*.js", | ||
"*.json", | ||
"Icon", | ||
"icon_name_svg", | ||
"markup", | ||
"markup_", | ||
"svg_preprocess" | ||
], | ||
"types": "./index.d.ts", | ||
"exports": { | ||
".": { | ||
"browser": "./index.browser.js", | ||
"default": "./index.js", | ||
"import": "./index.js" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"dependencies": { | ||
"ctx-core": "^5.29.0", | ||
"dom-serializer": "^2.0.0", | ||
"domhandler": "^5.0.3", | ||
"htmlparser2": "^9.1.0" | ||
}, | ||
"devDependencies": { | ||
"@ctx-core/svg": "^19.0.45", | ||
"@sveltejs/adapter-auto": "next", | ||
"@sveltejs/kit": "next", | ||
"c8": "^9.1.0", | ||
"check-dts": "^0.7.2", | ||
"locate-character": "^3.0.0", | ||
"svelte": "^4.2.9", | ||
"svelte-preprocess": "^5.1.3", | ||
"tsx": "^4.7.0", | ||
"typescript": "next", | ||
"uvu": "^0.5.6" | ||
}, | ||
"publishConfig": { | ||
"access": "public", | ||
"cache": "~/.npm" | ||
}, | ||
"sideEffects": false, | ||
"scripts": { | ||
"build": ":", | ||
"clean": ":", | ||
"exec": "$@", | ||
"test": "pnpm test:unit && pnpm test:types", | ||
"test:types": "check-dts", | ||
"test:unit": "tsx node_modules/uvu/bin.js . '\\.test\\.(ts|js)$'", | ||
"test:unit:coverage": "c8 pnpm test:unit" | ||
} | ||
} |
12378
232