mobiledoc-vdom-renderer
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "mobiledoc-vdom-renderer", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Render Mobiledoc as VDOM, for React or React-like `createElement` calls", | ||
"main": "dist/index.js", | ||
"module": "dist/index.mjs", | ||
"types": "dist/index.d.ts", | ||
"engines": { | ||
"node": ">=7" | ||
}, | ||
"files": [ | ||
"dist/" | ||
], | ||
"module": "dist/module/index.js", | ||
"types": "dist/module/index.d.ts", | ||
"main": "dist/commonjs/index.js", | ||
"scripts": { | ||
"lint": "tsc --pretty --noEmit; npm run lint:ts; npm run lint:js", | ||
"lint:ts": "tslint --config tslint.json --project tsconfig.json --exclude '**/*.js' --format stylish || true", | ||
"lint:js": "eslint . --ext .ts .js --ignore-path .gitignore || true", | ||
"typecheck": "tsc --pretty --noEmit", | ||
"lint:ts": "tslint --config tslint.json --project tsconfig.json --exclude '**/*.js' --format stylish", | ||
"lint:js": "eslint . --ext .ts .js --ignore-path .gitignore", | ||
"lint": "npm run typecheck; tsc --pretty --noEmit; npm run lint:ts; npm run lint:js", | ||
"format": "eslint . --ext .ts .js --ignore-path .gitignore --fix && prettier '**/*.md' --write", | ||
"test:js": "nyc --require ts-node/register ava", | ||
"test": "npm run lint && npm run test:js", | ||
"test": "npm run typecheck && tsc --pretty --noEmit && npm run lint:ts && npm run lint:js && npm run test:js", | ||
"snapshot": "ava --update-snapshots", | ||
@@ -19,3 +26,3 @@ "watch:lint": "chokidar '**/*.{ts,js}' --ignore node_modules/ --verbose --command 'tsc --pretty --noEmit; tslint --config tslint.json --project tsconfig.json --exclude \"**/*.js\" {path}; eslint {path}'", | ||
"start": "concurrently 'npm run watch:lint' 'npm run watch:test' --raw", | ||
"build": "tsc --project tsconfig.module.json && renamer --find .js --replace .mjs 'dist/**/*.js' && tsc", | ||
"build": "tsc --project tsconfig.module.json && tsc", | ||
"prepublishOnly": "npm test && rm -rf dist && npm run build", | ||
@@ -62,3 +69,2 @@ "postpublish": "rm -rf dist" | ||
"react-dom": "^16.3.0", | ||
"renamer": "^0.6.1", | ||
"ts-node": "^5.0.1", | ||
@@ -65,0 +71,0 @@ "tslint": "^5.9.1", |
@@ -99,9 +99,5 @@ # mobiledoc-vdom-renderer | ||
```typescript | ||
import { Mobiledoc } from 'mobiledoc-vdom-renderer' | ||
import { Mobiledoc, MobiledocTypes } from 'mobiledoc-vdom-renderer' | ||
``` | ||
```typescript | ||
import Mobiledoc, * as MobiledocTypes from 'mobiledoc-vdom-renderer/types/mobiledoc' | ||
``` | ||
This package includes [complete Typescript definitions describing the Mobiledoc format](./types/Mobiledoc/index.ts), which may be imported directly for use with any mobiledoc-related code. | ||
@@ -108,0 +104,0 @@ |
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
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 19 instances in 1 package
25
1
67458
81
1304
149