Socket
Socket
Sign inDemoInstall

ember-purify

Package Overview
Dependencies
228
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.1.2 to 3.2.0

25

package.json
{
"name": "ember-purify",
"version": "3.1.2",
"version": "3.2.0",
"description": "Ember addon to help purify DOM content",

@@ -21,7 +21,7 @@ "directories": {

"broccoli-asset-rev": "^2.5.0",
"ember-cli": "2.13.2",
"ember-cli": "2.13.3",
"ember-cli-app-version": "^3.0.0",
"ember-cli-dependency-checker": "^2.0.0",
"ember-cli-eslint": "^3.1.0",
"ember-cli-htmlbars": "^2.0.1",
"ember-cli-dependency-checker": "^2.0.1",
"ember-cli-eslint": "^4.1.0",
"ember-cli-htmlbars": "^2.0.2",
"ember-cli-htmlbars-inline-precompile": "^0.4.3",

@@ -33,8 +33,8 @@ "ember-cli-inject-live-reload": "^1.6.1",

"ember-cli-uglify": "^1.2.0",
"ember-disable-prototype-extensions": "^1.1.0",
"ember-disable-prototype-extensions": "^1.1.2",
"ember-export-application-global": "^2.0.0",
"ember-load-initializers": "^1.0.0",
"ember-resolver": "^4.1.0",
"ember-source": "2.13.2",
"loader.js": "^4.4.0"
"ember-resolver": "^4.2.1",
"ember-source": "2.13.3",
"loader.js": "^4.5.1"
},

@@ -59,3 +59,3 @@ "keywords": [

"dompurify": "^0.9.0",
"ember-cli-babel": "^6.1.0"
"ember-cli-babel": "^6.5.1"
},

@@ -65,6 +65,3 @@ "ember-addon": {

},
"repository": {
"type": "git",
"url": "git+https://github.com/sivakumar-kailasam/ember-purify.git"
},
"repository": "git+https://github.com/sivakumar-kailasam/ember-purify.git",
"bugs": {

@@ -71,0 +68,0 @@ "url": "https://github.com/sivakumar-kailasam/ember-purify/issues"

@@ -19,2 +19,3 @@ # Ember-purify

For templates,
```handlebars

@@ -27,3 +28,9 @@ {{purify-dom '<img src="missing-image.png" onerror=alert(1)//>'}}

```
If you need to use DOMPurify in your js, you can refer to the `DOMPurify` global object that's imported for you by this addon.
To use it in js,
```js
import { sanitize } from 'dom-purify';
```
Note that global config isn't applied to the functions imported in JS.
Details on DOMPurify, the underlying library can be found in its [README](https://github.com/cure53/DOMPurify/blob/master/README.md)

@@ -30,0 +37,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc