Socket
Socket
Sign inDemoInstall

ssri

Package Overview
Dependencies
1
Maintainers
6
Versions
38
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous123

4.1.0

Diff

Changelog

Source

4.1.0 (2017-04-07)

Features

  • adding ssri.create for a crypto style interface (#2) (96f52ad)

<a name="4.0.0"></a>

zkat
published 4.0.0 •

Changelog

Source

4.0.0 (2017-04-03)

Bug Fixes

  • integrity: should have changed the error code before. oops (8381afa)

BREAKING CHANGES

  • integrity: EBADCHECKSUM -> EINTEGRITY for verification errors

<a name="3.0.2"></a>

zkat
published 3.0.2 •

Changelog

Source

3.0.2 (2017-04-03)

<a name="3.0.1"></a>

zkat
published 3.0.1 •

Changelog

Source

3.0.1 (2017-04-03)

Bug Fixes

  • package.json: really should have these in the keywords because search (a6ac6d0)

<a name="3.0.0"></a>

zkat
published 3.0.0 •

Changelog

Source

3.0.0 (2017-04-03)

Bug Fixes

  • hashes: IntegrityMetadata -> Hash (d04aa1f)

Features

  • check: return IntegrityMetadata on check success (2301e74)
  • fromHex: ssri.fromHex to make it easier to generate them from hex valus (049b89e)
  • hex: utility function for getting hex version of digest (a9f021c)
  • hexDigest: added hexDigest method to Integrity objects too (85208ba)
  • integrity: add .isIntegrity and .isIntegrityMetadata (1b29e6f)
  • integrityStream: new stream that can both generate and check streamed data (fd23e1b)
  • parse: allow parsing straight into a single IntegrityMetadata object (c8ddf48)
  • pickAlgorithm: Intergrity#pickAlgorithm() added (b97a796)
  • size: calculate and update stream sizes (02ed1ad)

BREAKING CHANGES

  • hashes: .isIntegrityMetadata is now .isHash. Also, any references to IntegrityMetadata now refer to Hash.
  • integrityStream: createCheckerStream has been removed and replaced with a general-purpose integrityStream.

To convert existing createCheckerStream code, move the sri argument into opts.integrity in integrityStream. All other options should be the same.

  • check: checkData, checkStream, and createCheckerStream now yield a whole IntegrityMetadata instance representing the first successful hash match.

<a name="2.0.0"></a>

zkat
published 2.0.0 •

Changelog

Source

2.0.0 (2017-03-24)

Bug Fixes

  • strict-mode: make regexes more rigid (122a32c)

Features

  • api: added serialize alias for unparse (999b421)
  • concat: add Integrity#concat() (cae12c7)
  • pickAlgo: pick the strongest algorithm provided, by default (58c18f7)
  • strict-mode: strict SRI support (3f0b64c)
  • stringify: replaced unparse/serialize with stringify (4acad30)
  • verification: add opts.pickAlgorithm (f72e658)

BREAKING CHANGES

  • pickAlgo: ssri will prioritize specific hashes now
  • stringify: serialize and unparse have been removed. Use ssri.stringify instead.
  • strict-mode: functions that accepted an optional sep argument now expect opts.sep.

<a name="1.0.0"></a>

zkat
published 1.0.0 •

Changelog

Source

1.0.0 (2017-03-23)

Features

  • api: implemented initial api (4fbb16b)

BREAKING CHANGES

  • api: Initial API established.
zkat
published 0.0.0 •

Changelog

Source

10.0.1 (2022-12-07)

Dependencies

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