Comparing version 1.0.1 to 2.0.0-pre.1
128
package.json
{ | ||
"name": "lit" | ||
, "version": "1.0.1" | ||
, "description": "Micro-literate programming lib for javascript, inspired by docco" | ||
, "author": "Casey Duncan <apres.project@gmail.com>" | ||
, "contributors": [] | ||
, "repository": { | ||
"type": "git", | ||
"url": "https://github.com/apres/lit.js" | ||
} | ||
, "license": "MIT" | ||
, "keywords": [ | ||
"literate", "micro" | ||
] | ||
, "bin": { | ||
"litjs": "./bin/litjs" | ||
} | ||
, "dependencies": { | ||
"ghm": "1.0.x", | ||
"optimist": "0.3.x", | ||
"highlight.js": "7.0.x" | ||
} | ||
, "devDependencies": { | ||
"requirejs": "2.0.x", | ||
"mocha": "1.1.x", | ||
"chai": "1.0.x" | ||
} | ||
, "scripts": { | ||
"dtest": "./node_modules/.bin/mocha --reporter spec --no-colors --ui qunit --debug-brk --ignore-leaks", | ||
"test": "./node_modules/.bin/mocha --reporter spec --no-colors --ui qunit --ignore-leaks" | ||
} | ||
"name": "lit", | ||
"version": "2.0.0-pre.1", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"description": "A library for building fast, lightweight web components", | ||
"license": "BSD-3-Clause", | ||
"repository": "Polymer/lit-html", | ||
"author": "The Polymer Authors", | ||
"homepage": "https://github.com/Polymer/lit-html/tree/lit-next", | ||
"main": "index.js", | ||
"module": "index.js", | ||
"type": "module", | ||
"exports": { | ||
".": { | ||
"default": "./index.js" | ||
}, | ||
"./decorators.js": { | ||
"default": "./decorators.js" | ||
}, | ||
"./decorators/": { | ||
"default": "./decorators/" | ||
}, | ||
"./directive-helpers.js": { | ||
"default": "./directive-helpers.js" | ||
}, | ||
"./directive.js": { | ||
"default": "./directive.js" | ||
}, | ||
"./directives/": { | ||
"default": "./directives/" | ||
}, | ||
"./async-directive.js": { | ||
"default": "./async-directive.js" | ||
}, | ||
"./html.js": { | ||
"default": "./html.js" | ||
}, | ||
"./hydrate-support.js": { | ||
"default": "./hydrate-support.js" | ||
}, | ||
"./hydrate.js": { | ||
"default": "./hydrate.js" | ||
}, | ||
"./polyfill-support.js": { | ||
"default": "./polyfill-support.js" | ||
}, | ||
"./static-html.js": { | ||
"default": "./static-html.js" | ||
} | ||
}, | ||
"scripts": { | ||
"build": "npm run clean && tsc --build && rollup -c", | ||
"build:watch": "rollup -c --watch", | ||
"build:ts": "tsc --build", | ||
"build:ts:watch": "tsc --build --watch", | ||
"clean": "rm -rf {async-directive,decorators,directive-helpers,directive,html,hydrate-support,hydrate,index,polyfill-support,static-html}.{d.ts.map,d.ts,js.map,js} test/ decorators/ directives/ development/ *.tsbuildinfo", | ||
"publish-dev": "VERSION=${npm_package_version%-*}-dev.`git rev-parse --short HEAD` && npm version --no-git-tag-version $VERSION && npm publish --tag dev", | ||
"regen-package-lock": "rm -rf node_modules package-lock.json; npm install", | ||
"test": "MODE=prod cd ../tests && npx wtr '../lit/test/**/*_test.(js|html)'" | ||
}, | ||
"files": [ | ||
"/async-directive.{d.ts.map,d.ts,js.map,js}", | ||
"/decorators.{d.ts.map,d.ts,js.map,js}", | ||
"/directive-helpers.{d.ts.map,d.ts,js.map,js}", | ||
"/directive.{d.ts.map,d.ts,js.map,js}", | ||
"/html.{d.ts.map,d.ts,js.map,js}", | ||
"/hydrate-support.{d.ts.map,d.ts,js.map,js}", | ||
"/hydrate.{d.ts.map,d.ts,js.map,js}", | ||
"/index.{d.ts.map,d.ts,js.map,js}", | ||
"/polyfill-support.{d.ts.map,d.ts,js.map,js}", | ||
"/static-html.{d.ts.map,d.ts,js.map,js}", | ||
"/decorators/", | ||
"/directives/", | ||
"/src/", | ||
"!/src/demo/", | ||
"!/src/test/" | ||
], | ||
"dependencies": { | ||
"@lit/reactive-element": "^1.0.0-pre.2", | ||
"lit-element": "^3.0.0-pre.3", | ||
"lit-html": "^2.0.0-pre.6" | ||
}, | ||
"devDependencies": { | ||
"@esm-bundle/chai": "^4.1.5", | ||
"@types/chai": "^4.0.1", | ||
"@types/mocha": "^8.0.3", | ||
"@webcomponents/shadycss": "^1.8.0", | ||
"@webcomponents/webcomponentsjs": "^2.5.0", | ||
"@webcomponents/template": "^1.4.4", | ||
"chokidar-cli": "^2.1.0", | ||
"downlevel-dts": "^0.6.0", | ||
"mocha": "^8.1.1", | ||
"rollup": "^2.26.4", | ||
"tslib": "^2.0.3", | ||
"typescript": "^4.1.3" | ||
}, | ||
"typings": "index.d.ts" | ||
} |
@@ -1,48 +0,21 @@ | ||
Lit.js | ||
====== | ||
# Lit 2.0 | ||
Lit is a micro-literate programming library for Javascript inspired by docco. | ||
Lit was created for the [Apres project](http://apres.github.com) but is | ||
released separately for easy integration with any project wanting to display | ||
annotated Javascript code. Lit features: | ||
Fast, lightweight web components | ||
- Pure Javascript implementation, no shell-outs. | ||
- Runs in browser, or via node.js. | ||
- Can be loaded as an AMD module via requirejs, a CommonJS module via node.js, | ||
or via a simple `<script>` include. | ||
- Table-free, simple, and readable html structure. | ||
- Multiple css styles. | ||
- Pluggable comment and code parsers. | ||
- MIT License. | ||
## About this package | ||
Installation | ||
------------ | ||
The `lit` package contains everything needed to build Lit components with the LitElement base class, lit-html templates, and all first-party lit-html directives. | ||
To use Lit on the command-line, use `npm install lit`, use the global option | ||
to be able to run it anywhere. | ||
Modules: | ||
Examples | ||
-------- | ||
- [Static Columns Style](http://apres.github.com/lit.js/columns.html) | ||
- [Static Callouts Style](http://apres.github.com/lit.js/callouts.html) | ||
- [Static Stacked Style](http://apres.github.com/lit.js/stacked.html) | ||
- [In-Browser Demo](http://apres.github.com/lit.js/amd.html) | ||
CLI | ||
--- | ||
The command-line script `litjs` is provided to create annotated web pages from | ||
Javascript source files. | ||
``` | ||
Create annotated web page from JS source | ||
Usage: litjs [infile] | ||
Options: | ||
-t, --template HTML template file name, defaults to columns.html | ||
-o, --out Output file, defaults to stdout | ||
--title Title for output page, defaults to input file name | ||
--style, -s Page style, one of "columns", "callouts", or "stacked" [default: "columns"] | ||
``` | ||
- `lit`: The main module exports the core pieces needed for component development: `LitElement`, `html`, `css`, and the most | ||
- `lit/decorators.js`: Exports all the TypeScript/Babel decorators from one module. | ||
- `lit/decorators/...`: The `decorators/` folder contains a module for each decorator (`@customElement()`, `@property()`, etc.) for optimal pay-as-you-go module loading. | ||
- `lit/html.js`: Just the exports needed for standalone `lit-html` usage: `render()`, `html`, `svg`, etc. | ||
- `lit/static-html.js`: The lit-html `static.js` module | ||
- `lit/directives.js`: Contains the `Directive` base class for implementing directives. | ||
- `lit/directive-helpers.js`: Optional helper utilities for implementing directives. | ||
- `lit/async-directive.js`: A directive base class that supports disconnection and reconnection. | ||
- `lit/directives/...`: The `directives/` folder contains all of the first-party lit-html directives, like `repeat`, `classMap`, etc. | ||
- `lit/polyfill-support.js`: A module that connects Lit to the web components polyfills where necessary to support older browsers. | ||
- `lit/hydrate-support.js`: A module that add hydration support to LitElement. |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses eval() which is a dangerous function. This prevents the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
127
Yes
80981
12
989
22
+ Addedlit-element@^3.0.0-pre.3
+ Addedlit-html@^2.0.0-pre.6
+ Added@lit-labs/ssr-dom-shim@1.2.1(transitive)
+ Added@lit/reactive-element@1.6.3(transitive)
+ Added@types/trusted-types@2.0.7(transitive)
+ Addedlit-element@3.3.3(transitive)
+ Addedlit-html@2.8.0(transitive)
- Removedghm@1.0.x
- Removedhighlight.js@7.0.x
- Removedoptimist@0.3.x
- Removedghm@1.0.0(transitive)
- Removedhighlight.js@7.0.1(transitive)
- Removedoptimist@0.3.7(transitive)
- Removedwordwrap@0.0.3(transitive)