Comparing version 0.0.0 to 0.0.1
{ | ||
"name": "be-based", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"description": "", | ||
"main": "index.js", | ||
"main": "be-based.js", | ||
"module": "be-based.js", | ||
"keywords": [ | ||
"web components", | ||
"web component", | ||
"custom elements", | ||
"custom element" | ||
], | ||
"dependencies": { | ||
"be-decorated": "0.0.71", | ||
"be-hive": "0.0.20" | ||
}, | ||
"devDependencies": { | ||
"xtal-test": "0.0.55", | ||
"@skypack/package-check": "0.2.2", | ||
"@custom-elements-manifest/analyzer": "0.5.7" | ||
}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"serve": "node node_modules/xtal-test/serve.js", | ||
"package-check": "package-check", | ||
"doc": "custom-elements-manifest analyze" | ||
}, | ||
@@ -9,0 +28,0 @@ "repository": { |
@@ -1,1 +0,37 @@ | ||
# be-based | ||
# be-based | ||
be-based is a package that contains a client-side web component decorator, a trans-render transformer [TODO], and a HTMLRewriter class [TODO]. | ||
## client-side decorator | ||
```html | ||
<template be-based='{ | ||
"rules": [ | ||
{ | ||
"selector": "a", | ||
"attr": "href", | ||
"ifNot": "^(http|https)", | ||
"prependVal": "https://www.supremecourt.gov/about/" | ||
} | ||
] | ||
}'> | ||
<a href="biographies.aspx#SOConnor">O'Connor, Sandra Day</a> | ||
</template> | ||
``` | ||
transforms the template to: | ||
```html | ||
<template is-based='{ | ||
"rules": [ | ||
{ | ||
"selector": "a", | ||
"attr": "href", | ||
"ifNot": "^(http|https)", | ||
"prependVal": "https://www.supremecourt.gov/about/" | ||
} | ||
] | ||
}'> | ||
<a href="https://www.supremecourt.gov/about/biographies.aspx#SOConnor">O'Connor, Sandra Day</a> | ||
</template> | ||
``` |
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
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
7893
10
123
37
0
2
3
+ Addedbe-decorated@0.0.71
+ Addedbe-hive@0.0.20
+ Addedbe-decorated@0.0.71(transitive)
+ Addedbe-hive@0.0.20(transitive)
+ Addedtrans-render@0.0.448(transitive)
+ Addedxtal-element@0.0.462(transitive)