Socket
Socket
Sign inDemoInstall

@nuskin/ns-common-lib

Package Overview
Dependencies
0
Maintainers
5
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.4.4 to 1.4.5

7

CHANGELOG.md

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

## [1.4.5](https://code.tls.nuskin.io/ns-am/utility/npm/ns-common-lib/compare/v1.4.4...v1.4.5) (2022-04-05)
### Fix
* use pure regex for stripHtml, DOMParser not available in lambda (#CX12-4988) ([d9e25eb](https://code.tls.nuskin.io/ns-am/utility/npm/ns-common-lib/commit/d9e25eb7f01c4bbe127889002d62998b4f595806)), closes [#CX12-4988](https://code.tls.nuskin.io/ns-am/utility/npm/ns-common-lib/issues/CX12-4988)
## [1.4.4](https://code.tls.nuskin.io/ns-am/utility/npm/ns-common-lib/compare/v1.4.3...v1.4.4) (2022-04-05)

@@ -2,0 +9,0 @@

2

package.json
{
"name": "@nuskin/ns-common-lib",
"version": "1.4.4",
"version": "1.4.5",
"description": "This project contains shared common models and code between the backend and frontend.",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -21,4 +21,4 @@ "use strict";

}
const parsedDom = new DOMParser().parseFromString(value, 'text/html');
return parsedDom.body.textContent;
const htmlTagRegex = /<\/?([a-zA-Z]\s?)*?([a-zA-Z]+?=\s?".*")*?([\s/]*?)>/gi
return value.replace(htmlTagRegex, '');
}

@@ -25,0 +25,0 @@

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