New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

asn1-ts

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asn1-ts - npm Package Versions

1
9

7.0.8

Diff

jonathanwilbur
published 7.0.7 •

jonathanwilbur
published 7.0.6 •

jonathanwilbur
published 7.0.5 •

jonathanwilbur
published 7.0.4 •

jonathanwilbur
published 7.0.3 •

jonathanwilbur
published 7.0.2 •

jonathanwilbur
published 7.0.1 •

Changelog

Source

[7.0.11]

  • Fix invalid type for _encode_choice
  • Fix invalid validation of SEQUENCE types with a trailing root component type list.
    • This would cause an error saying SEQUENCE '<sequence name>' had excess elements at the end.
jonathanwilbur
published 7.0.0 •

Changelog

Source

[7.0.0]

Make ENUMERATED have number type only. This is most just to avoid breaking existing code. This is important, because:

  • In common use cases, you'll compare enumerated values. Using the === strict equality operator, a bigint will not equate to a number of similar value. So supporting bigint would complicate comparisons.
  • You may wish to represent ENUMERATED types as actual enums. If you do, you would not be able to represent all decoded values as a member of that enum without first converting the bigint into a number.
  • ENUMERATED types typically do not have absurdly large values.
jonathanwilbur
published 6.0.0 •

Changelog

Source

[6.0.0]

It's 2021 and we have Browserify and BigInt. We can use Buffer methods to encode and decode integers (instead rolling our own implementation for Uint8Array), and we can use BigInt so that we can support INTEGER and ENUMERATED values that are infinitely large!

This does mean that I have removed the Webpack configuration. If you want this in a web app, it really should just be packed along with your project as a whole rather than imported separately. If you really want it as a separate import, the only thing you should have to do is define Buffer in the global context.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc