Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

typed-html

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typed-html - npm Package Compare versions

Comparing version 0.6.0 to 0.6.1

src/elements.d.ts

116

CHANGELOG.md

@@ -1,102 +0,94 @@

<a name="0.6.0"></a>
# 0.6.0 (2018-01-22)
## [0.6.1](https://github.com/nicojs/typed-html/compare/v0.6.0...v0.6.1) (2018-12-21)
* feat(helper components): Add support for using functions as HTML elements ([bdf0b3a](https://github.com/nicojs/typed-html/commit/bdf0b3a))
### Bug Fixes
* **typings:** Don't publish source files to npm (typings instead) ([37bc753](https://github.com/nicojs/typed-html/commit/37bc753))
<a name="0.5.1"></a>
## 0.5.1 (2017-12-05)
* 0.5.1 ([39d066e](https://github.com/nicojs/typed-html/commit/39d066e))
* chore(package-lock): Add package lock file ([7df4e1b](https://github.com/nicojs/typed-html/commit/7df4e1b))
* docks(package): Add a description ([3e5765e](https://github.com/nicojs/typed-html/commit/3e5765e))
# [0.6.0](https://github.com/nicojs/typed-html/compare/v0.5.1...v0.6.0) (2018-01-22)
<a name="0.5.0"></a>
# 0.5.0 (2017-09-28)
### Features
* 0.5.0 ([7a3fe6a](https://github.com/nicojs/typed-html/commit/7a3fe6a))
* chore(build): Fix generate changelog script ([68ea3d9](https://github.com/nicojs/typed-html/commit/68ea3d9))
* docs(changelog): Add changelog ([eafa2eb](https://github.com/nicojs/typed-html/commit/eafa2eb))
* feat(boolean attributes): Add support for boolean attributes ([f6760e9](https://github.com/nicojs/typed-html/commit/f6760e9))
* **helper components:** Add support for using functions as HTML elements ([bdf0b3a](https://github.com/nicojs/typed-html/commit/bdf0b3a))
<a name="0.4.0"></a>
# 0.4.0 (2017-09-26)
## [0.5.1](https://github.com/nicojs/typed-html/compare/v0.5.0...v0.5.1) (2017-12-05)
* 0.4.0 ([935b486](https://github.com/nicojs/typed-html/commit/935b486))
* docs(package): Add repo, author and keywords fields ([cfd1d2c](https://github.com/nicojs/typed-html/commit/cfd1d2c))
* feat(integrity): Add `integrity` to `script` tag. ([3bfb42b](https://github.com/nicojs/typed-html/commit/3bfb42b))
# [0.5.0](https://github.com/nicojs/typed-html/compare/v0.4.0...v0.5.0) (2017-09-28)
<a name="0.3.3"></a>
## 0.3.3 (2017-07-14)
* 0.3.3 ([fd005b2](https://github.com/nicojs/typed-html/commit/fd005b2))
* docs: Add changelog ([8af1b68](https://github.com/nicojs/typed-html/commit/8af1b68))
* docs: Update changelog ([ff48418](https://github.com/nicojs/typed-html/commit/ff48418))
* test: Make tests timezone independent ([916adf4](https://github.com/nicojs/typed-html/commit/916adf4))
* feat: add 'role' attribute to all html elements ([0bb4284](https://github.com/nicojs/typed-html/commit/0bb4284))
### Features
* **boolean attributes:** Add support for boolean attributes ([f6760e9](https://github.com/nicojs/typed-html/commit/f6760e9))
<a name="0.3.2"></a>
## 0.3.2 (2017-05-30)
* 0.3.2 ([67cc4ee](https://github.com/nicojs/typed-html/commit/67cc4ee))
* Add attribute to link tag ([cbf9f9f](https://github.com/nicojs/typed-html/commit/cbf9f9f))
# [0.4.0](https://github.com/nicojs/typed-html/compare/v0.3.3...v0.4.0) (2017-09-26)
### Features
<a name="0.3.1"></a>
## 0.3.1 (2017-05-01)
* **integrity:** Add `integrity` to `script` tag. ([3bfb42b](https://github.com/nicojs/typed-html/commit/3bfb42b))
* 0.3.1 ([21819c4](https://github.com/nicojs/typed-html/commit/21819c4))
* docs(readme): Clarify some edge cases ([84dd409](https://github.com/nicojs/typed-html/commit/84dd409))
* docs(readme): Fix small typo's ([25558da](https://github.com/nicojs/typed-html/commit/25558da))
* docs(readme): Minor doc fixes ([f849ca7](https://github.com/nicojs/typed-html/commit/f849ca7))
* docs(readme): Update layout and close bracket ([c8daea2](https://github.com/nicojs/typed-html/commit/c8daea2))
* fix(casing): Support multiple uppercase characters ([aa1733f](https://github.com/nicojs/typed-html/commit/aa1733f))
* fix(html-tag): Rename `HTMLTag` -> `HtmlHtmlTag` ([fb56d75](https://github.com/nicojs/typed-html/commit/fb56d75))
* test(custom-elements): Add custom element types for testing ([27c917e](https://github.com/nicojs/typed-html/commit/27c917e))
* refactor(elements): Rename `*Element` -> `*Tag` ([3eb1c28](https://github.com/nicojs/typed-html/commit/3eb1c28))
## [0.3.3](https://github.com/nicojs/typed-html/compare/v0.3.2...v0.3.3) (2017-07-14)
<a name="0.3.0"></a>
# 0.3.0 (2017-04-29)
* 0.3.0 ([3b3c2d9](https://github.com/nicojs/typed-html/commit/3b3c2d9))
* feat(createElement): Escape attribute values ([cbd780d](https://github.com/nicojs/typed-html/commit/cbd780d))
* feat(html5): Move to html5 compliant implementation ([84b1db9](https://github.com/nicojs/typed-html/commit/84b1db9))
### Features
* add 'role' attribute to all html elements ([0bb4284](https://github.com/nicojs/typed-html/commit/0bb4284))
<a name="0.2.0"></a>
# 0.2.0 (2017-04-19)
* 0.2.0 ([031a19d](https://github.com/nicojs/typed-html/commit/031a19d))
* docs(readme): Document features ([32ff2b7](https://github.com/nicojs/typed-html/commit/32ff2b7))
* fix(attibutes): Fix small template issues ([a65dd48](https://github.com/nicojs/typed-html/commit/a65dd48))
* fix(elements): Add triple slash references to global types ([ae94144](https://github.com/nicojs/typed-html/commit/ae94144))
* fix(npmignore): Don't ignore src files ([6101f30](https://github.com/nicojs/typed-html/commit/6101f30))
* fix(pkg): Add `main` and `typings` fields ([5473613](https://github.com/nicojs/typed-html/commit/5473613))
## [0.3.2](https://github.com/nicojs/typed-html/compare/v0.3.1...v0.3.2) (2017-05-30)
<a name="0.1.0"></a>
# 0.1.0 (2017-04-19)
## [0.3.1](https://github.com/nicojs/typed-html/compare/v0.3.0...v0.3.1) (2017-05-01)
* 0.1.0 ([e8664c2](https://github.com/nicojs/typed-html/commit/e8664c2))
* Initial commit ([369c624](https://github.com/nicojs/typed-html/commit/369c624))
* chore(pckg): Prepare release ([9b66a54](https://github.com/nicojs/typed-html/commit/9b66a54))
* chore(pkg): Add preversion script ([2d6866c](https://github.com/nicojs/typed-html/commit/2d6866c))
* docs(readme): Add empty readme ([19f6ad4](https://github.com/nicojs/typed-html/commit/19f6ad4))
* fix(node-version): Remove node 4 from supported versions ([ce57600](https://github.com/nicojs/typed-html/commit/ce57600))
### Bug Fixes
* **casing:** Support multiple uppercase characters ([aa1733f](https://github.com/nicojs/typed-html/commit/aa1733f))
* **html-tag:** Rename `HTMLTag` -> `HtmlHtmlTag` ([fb56d75](https://github.com/nicojs/typed-html/commit/fb56d75))
# [0.3.0](https://github.com/nicojs/typed-html/compare/v0.2.0...v0.3.0) (2017-04-29)
### Features
* **createElement:** Escape attribute values ([cbd780d](https://github.com/nicojs/typed-html/commit/cbd780d))
* **html5:** Move to html5 compliant implementation ([84b1db9](https://github.com/nicojs/typed-html/commit/84b1db9))
# [0.2.0](https://github.com/nicojs/typed-html/compare/v0.1.0...v0.2.0) (2017-04-19)
### Bug Fixes
* **attibutes:** Fix small template issues ([a65dd48](https://github.com/nicojs/typed-html/commit/a65dd48))
* **elements:** Add triple slash references to global types ([ae94144](https://github.com/nicojs/typed-html/commit/ae94144))
* **npmignore:** Don't ignore src files ([6101f30](https://github.com/nicojs/typed-html/commit/6101f30))
* **pkg:** Add `main` and `typings` fields ([5473613](https://github.com/nicojs/typed-html/commit/5473613))
# [0.1.0](https://github.com/nicojs/typed-html/compare/ce57600...v0.1.0) (2017-04-19)
### Bug Fixes
* **node-version:** Remove node 4 from supported versions ([ce57600](https://github.com/nicojs/typed-html/commit/ce57600))
{
"name": "typed-html",
"version": "0.6.0",
"version": "0.6.1",
"description": "TypeSafe HTML templates using TypeScript. No need to learn a template library.",

@@ -18,4 +18,7 @@ "main": "src/elements.js",

"version": "npm run generate-changelog",
"generate-changelog": "conventional-changelog -r 0 > CHANGELOG.md && git add CHANGELOG.md",
"start": "tsc -w -p ."
"generate-changelog": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md",
"start": "tsc -w -p .",
"release:patch": "npm version patch -m \"chore(release): %s\"",
"release:minor": "npm version minor -m \"chore(release): %s\"",
"release:major": "npm version major -m \"chore(release): %s\""
},

@@ -34,14 +37,20 @@ "engines": {

"devDependencies": {
"@types/chai": "^3.5.0",
"@types/mocha": "^2.2.41",
"@types/node": "^6.0.69",
"chai": "^3.5.0",
"conventional-changelog-cli": "^1.3.3",
"@types/chai": "^4.1.7",
"@types/mocha": "^5.2.5",
"@types/node": "^10.12.18",
"chai": "^4.2.0",
"conventional-changelog-cli": "^2.0.11",
"html-differ": "^1.3.4",
"mocha": "^3.2.0",
"rimraf": "^2.6.1",
"source-map-support": "^0.4.18",
"tslint": "^5.0.0",
"typescript": "^2.5.2"
"mocha": "^5.2.0",
"rimraf": "^2.6.2",
"source-map-support": "^0.5.9",
"stryker": "^0.33.2",
"stryker-api": "^0.22.1",
"stryker-html-reporter": "^0.16.10",
"stryker-mocha-framework": "^0.13.3",
"stryker-mocha-runner": "^0.15.3",
"stryker-typescript": "^0.16.2",
"tslint": "^5.12.0",
"typescript": "~3.2.2"
}
}

@@ -141,2 +141,19 @@ [![Build Status](https://travis-ci.org/nicojs/typed-html.svg?branch=master)](https://travis-ci.org/nicojs/typed-html)

## Sanitization
Security is *NOT* a feature. This library does *NOT* sanitize.
```ts
const script = '<script>alert("hacked!")</script>';
const body = <body>{script}</body>;
```
Will result in:
```html
<body><script>alert('hacked!');</script></body>
```
If you need sanitization, you can use something like [sanitize-html](https://www.npmjs.com/package/sanitize-html).
## Supported HTML

@@ -143,0 +160,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc