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

@bbob/plugin-helper

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bbob/plugin-helper - npm Package Compare versions

Comparing version 2.5.7 to 2.5.8

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

## [2.5.8](https://github.com/JiLiZART/bbob/compare/v2.5.7...v2.5.8) (2020-07-08)
### Bug Fixes
* **plugin-helper:** escape case insensitive javascript: attrs ([5ceb2f0](https://github.com/JiLiZART/bbob/commit/5ceb2f0fa4bb5c7b48ec18010fabc406a4d0b8c5))
## [2.5.7](https://github.com/JiLiZART/bbob/compare/v2.5.6...v2.5.7) (2020-07-05)

@@ -8,0 +19,0 @@

2

dist/index.js

@@ -52,3 +52,3 @@ (function (global, factory) {

return value.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;').replace(/'/g, '&#039;') // eslint-disable-next-line no-script-url
.replace('javascript:', 'javascript%3A');
.replace(/(javascript):/gi, '$1%3A');
};

@@ -55,0 +55,0 @@ /**

@@ -1,1 +0,1 @@

!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e=e||self).BbobPluginHelper={})}(this,(function(e){"use strict";var n=function(e){return"object"==typeof e&&!!e.tag},t=function(e){return"string"==typeof e},r=function(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;").replace("javascript:","javascript%3A")},o=function(e,n){var t=typeof n,o={boolean:function(){return n?""+e:""},number:function(){return e+'="'+n+'"'},string:function(){return e+'="'+r(n)+'"'},object:function(){return e+'="'+r(JSON.stringify(n))+'"'}};return o[t]?o[t]():""};e.appendToNode=function(e,n){e.content.push(n)},e.attrValue=o,e.attrsToString=function(e){return void 0===e?"":Object.keys(e).reduce((function(n,t){return[].concat(n,[o(t,e[t])])}),[""]).join(" ")},e.escapeHTML=r,e.getNodeLength=function e(r){return n(r)?r.content.reduce((function(n,t){return n+e(t)}),0):t(r)?r.length:0},e.getUniqAttr=function(e){return Object.keys(e).reduce((function(n,t){return e[t]===t?e[t]:null}),null)},e.isEOL=function(e){return"\n"===e},e.isStringNode=t,e.isTagNode=n,Object.defineProperty(e,"__esModule",{value:!0})}));
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e=e||self).BbobPluginHelper={})}(this,(function(e){"use strict";var n=function(e){return"object"==typeof e&&!!e.tag},t=function(e){return"string"==typeof e},r=function(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;").replace(/(javascript):/gi,"$1%3A")},o=function(e,n){var t=typeof n,o={boolean:function(){return n?""+e:""},number:function(){return e+'="'+n+'"'},string:function(){return e+'="'+r(n)+'"'},object:function(){return e+'="'+r(JSON.stringify(n))+'"'}};return o[t]?o[t]():""};e.appendToNode=function(e,n){e.content.push(n)},e.attrValue=o,e.attrsToString=function(e){return void 0===e?"":Object.keys(e).reduce((function(n,t){return[].concat(n,[o(t,e[t])])}),[""]).join(" ")},e.escapeHTML=r,e.getNodeLength=function e(r){return n(r)?r.content.reduce((function(n,t){return n+e(t)}),0):t(r)?r.length:0},e.getUniqAttr=function(e){return Object.keys(e).reduce((function(n,t){return e[t]===t?e[t]:null}),null)},e.isEOL=function(e){return"\n"===e},e.isStringNode=t,e.isTagNode=n,Object.defineProperty(e,"__esModule",{value:!0})}));

@@ -52,3 +52,3 @@ "use strict";

var escapeHTML = value => value.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;').replace(/'/g, '&#039;') // eslint-disable-next-line no-script-url
.replace('javascript:', 'javascript%3A');
.replace(/(javascript):/gi, '$1%3A');
/**

@@ -55,0 +55,0 @@ * Acept name and value and return valid html5 attribute string

@@ -61,3 +61,3 @@ "use strict";

return value.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;').replace(/'/g, '&#039;') // eslint-disable-next-line no-script-url
.replace('javascript:', 'javascript%3A');
.replace(/(javascript):/gi, '$1%3A');
};

@@ -64,0 +64,0 @@ /**

{
"name": "@bbob/plugin-helper",
"version": "2.5.7",
"version": "2.5.8",
"description": "Set of utils to help write plugins for @bbob/core",

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

],
"gitHead": "fe6a16b6d9850bdfe3569649583c9957bf8ebe9c"
"gitHead": "2eb1fbcccf065a95df2c1a28020119582d4a64d1"
}

@@ -37,3 +37,3 @@ import { N } from './char';

// eslint-disable-next-line no-script-url
.replace('javascript:', 'javascript%3A');
.replace(/(javascript):/gi, '$1%3A');

@@ -40,0 +40,0 @@ /**

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