Socket
Socket
Sign inDemoInstall

ssri

Package Overview
Dependencies
2
Maintainers
5
Versions
39
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 8.0.0 to 8.0.1

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [8.0.1](https://github.com/npm/ssri/compare/v8.0.0...v8.0.1) (2021-01-27)
### Bug Fixes
* simplify regex for strict mode, add tests ([76e2233](https://github.com/npm/ssri/commit/76e223317d971f19e4db8191865bdad5edee40d2))
## [8.0.0](https://github.com/npm/ssri/compare/v7.1.0...v8.0.0) (2020-02-18)

@@ -7,0 +14,0 @@

5

index.js

@@ -12,3 +12,3 @@ 'use strict'

const SRI_REGEX = /^([a-z0-9]+)-([^?]+)([?\S*]*)$/
const STRICT_SRI_REGEX = /^([a-z0-9]+)-([A-Za-z0-9+/=]{44,88})(\?[\x21-\x7E]*)*$/
const STRICT_SRI_REGEX = /^([a-z0-9]+)-([A-Za-z0-9+/=]{44,88})(\?[\x21-\x7E]*)?$/
const VCHAR_REGEX = /^[\x21-\x7E]+$/

@@ -28,3 +28,4 @@

const getOptString = options => !options || !options.length ? ''
const getOptString = options => !options || !options.length
? ''
: `?${options.join('?')}`

@@ -31,0 +32,0 @@

6

package.json
{
"name": "ssri",
"version": "8.0.0",
"version": "8.0.1",
"description": "Standard Subresource Integrity library -- parses, serializes, generates, and verifies integrity metadata according to the SRI spec.",

@@ -45,4 +45,4 @@ "main": "index.js",

"devDependencies": {
"standard": "^14.3.1",
"standard-version": "^7.1.0",
"standard": "^16.0.3",
"standard-version": "^9.1.0",
"tap": "^14.10.6"

@@ -49,0 +49,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