diff options
author | nlf <quitlahok@gmail.com> | 2021-01-28 23:52:05 +0300 |
---|---|---|
committer | nlf <quitlahok@gmail.com> | 2021-01-28 23:52:05 +0300 |
commit | 18a93f06b632be051b9455e32a85e4e75066f52c (patch) | |
tree | edce777e9dfec366fbf4f48fb7f2384f0036ca8c /node_modules | |
parent | 56c08863e15cb9cf8662b99ddc627cfcdff0348d (diff) |
ssri@8.0.1
Diffstat (limited to 'node_modules')
-rw-r--r-- | node_modules/ssri/CHANGELOG.md | 7 | ||||
-rw-r--r-- | node_modules/ssri/index.js | 5 | ||||
-rw-r--r-- | node_modules/ssri/package.json | 6 |
3 files changed, 13 insertions, 5 deletions
diff --git a/node_modules/ssri/CHANGELOG.md b/node_modules/ssri/CHANGELOG.md index 822e8506e..3fea458e9 100644 --- a/node_modules/ssri/CHANGELOG.md +++ b/node_modules/ssri/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [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) diff --git a/node_modules/ssri/index.js b/node_modules/ssri/index.js index 950548cf2..2b309849c 100644 --- a/node_modules/ssri/index.js +++ b/node_modules/ssri/index.js @@ -9,7 +9,7 @@ const SPEC_ALGORITHMS = ['sha256', 'sha384', 'sha512'] // rather than [a-z0-9]. const BASE64_REGEX = /^[a-z0-9+/]+(?:=?=?)$/i 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]+$/ const defaultOpts = { @@ -24,7 +24,8 @@ const defaultOpts = { const ssriOpts = (opts = {}) => ({ ...defaultOpts, ...opts }) -const getOptString = options => !options || !options.length ? '' +const getOptString = options => !options || !options.length + ? '' : `?${options.join('?')}` const _onEnd = Symbol('_onEnd') diff --git a/node_modules/ssri/package.json b/node_modules/ssri/package.json index aece8a6fb..4af1a3c4c 100644 --- a/node_modules/ssri/package.json +++ b/node_modules/ssri/package.json @@ -1,6 +1,6 @@ { "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.", "main": "index.js", "files": [], @@ -42,8 +42,8 @@ "minipass": "^3.1.1" }, "devDependencies": { - "standard": "^14.3.1", - "standard-version": "^7.1.0", + "standard": "^16.0.3", + "standard-version": "^9.1.0", "tap": "^14.10.6" }, "engines": { |