Skip to content

Commit 00c541a

Browse files
committed
1 parent 1b95e73 commit 00c541a

File tree

9 files changed

+1519
-12
lines changed

9 files changed

+1519
-12
lines changed

node_modules/.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,9 @@
306306
!/spdx-expression-parse
307307
!/spdx-license-ids
308308
!/ssri
309+
!/ssri/node_modules/
310+
/ssri/node_modules/*
311+
!/ssri/node_modules/minipass
309312
!/string_decoder
310313
!/string-width-cjs
311314
!/string-width

node_modules/ssri/lib/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
22

33
const crypto = require('crypto')
4-
const MiniPass = require('minipass')
4+
const { Minipass } = require('minipass')
55

66
const SPEC_ALGORITHMS = ['sha512', 'sha384', 'sha256']
77
const DEFAULT_ALGORITHMS = ['sha512']
@@ -15,7 +15,7 @@ const VCHAR_REGEX = /^[\x21-\x7E]+$/
1515

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

18-
class IntegrityStream extends MiniPass {
18+
class IntegrityStream extends Minipass {
1919
#emittedIntegrity
2020
#emittedSize
2121
#emittedVerified
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
The ISC License
2+
3+
Copyright (c) 2017-2023 npm, Inc., Isaac Z. Schlueter, and Contributors
4+
5+
Permission to use, copy, modify, and/or distribute this software for any
6+
purpose with or without fee is hereby granted, provided that the above
7+
copyright notice and this permission notice appear in all copies.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15+
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

0 commit comments

Comments
 (0)