Socket
Socket
Sign inDemoInstall

unraw

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unraw - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

dist/errors.d.ts

6

changelog.md

@@ -5,4 +5,8 @@ # Change Log

## 1.2.2
- Update readme
- Publish types for `errors.ts`
## 1.2.1
- Publish error messages in `error.ts`
- Publish error messages in `errors.ts`
- Refactor `index.ts` methods

@@ -9,0 +13,0 @@

4

package.json
{
"name": "unraw",
"version": "1.2.1",
"version": "1.2.2",
"description": "Convert raw escape sequences to their respective characters (undo String.raw).",

@@ -71,2 +71,4 @@ "main": "dist/index.js",

"dist/index.min.js",
"dist/errors.d.ts",
"dist/errors.d.ts.map",
"dist/errors.js",

@@ -73,0 +75,0 @@ "dist/errors.js.map",

@@ -72,2 +72,13 @@ # unraw

### Errors
If desired, you can access the error messages for comparison from the `errors`
submodule:
```ts
import {errorMessages} from "unraw/dist/errors";
const hexErrorMessage = errorMessages.get("malformedHexadecimal");
```
The full list of error message names available as `errorMessages.keys()` or as
the `ErrorMessageName` type in TypeScript. All errors thrown are `SyntaxError`s.
## Contributing

@@ -74,0 +85,0 @@

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