Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

token-types

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

token-types - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

1

lib/index.js

@@ -560,1 +560,2 @@ "use strict";

exports.writeIntBE = writeIntBE;
//# sourceMappingURL=index.js.map

52

package.json
{
"name": "token-types",
"version": "1.0.1",
"version": "1.0.2",
"description": "Common token types for decoding and encoding binairy values",

@@ -10,13 +10,13 @@ "author": {

"scripts": {
"clean": "del-cli lib/**/*.js lib/**/*.js.map lib/**/*.d.ts test/**/*.d.ts test/**/*.js test/**/*.js.map .nyc_output",
"build": "npm run compile",
"compile-src": "tsc -p src",
"compile-src": "tsc -p lib",
"compile-test": "tsc -p test",
"compile": "npm run compile-src && npm run compile-test",
"prepare": "npm run compile",
"lint-ts": "tslint 'src/**/*.ts' --exclude 'src/**/*.d.ts' 'test/**/*.ts' --exclude 'test/**/*.d.ts'",
"lint-ts": "tslint 'lib/**/*.ts' --exclude 'lib/**/*.d.ts' 'test/**/*.ts' --exclude 'test/**/*.d.ts'",
"lint-md": "remark -u preset-lint-recommended .",
"lint": "npm run lint-ts && npm run lint-md",
"test": "mocha --require ts-node/register test",
"cover-test": "nyc npm run test",
"coveralls": "npm run cover-test && nyc report --reporter=text-lcov | coveralls"
"test": "mocha --require ts-node/register --require source-map-support/register --full-trace --recursive test/*.ts",
"test-coverage": "nyc npm run test",
"coveralls": "npm run test-coverage && nyc report --reporter=text-lcov | coveralls"
},

@@ -37,14 +37,16 @@ "engines": {

"devDependencies": {
"@types/chai": "^4.1.6",
"@types/chai": "^4.2.0",
"@types/mocha": "^5.2.5",
"@types/node": "^10.12.0",
"@types/node": "^12.7.2",
"chai": "^4.2.0",
"coveralls": "^3.0.2",
"mocha": "^5.2.0",
"nyc": "^13.1.0",
"remark-cli": "^6.0.0",
"remark-preset-lint-recommended": "^3.0.2",
"ts-node": "^7.0.1",
"tslint": "^5.11.0",
"typescript": "^3.1.3"
"coveralls": "^3.0.6",
"del-cli": "^2.0.0",
"mocha": "^6.2.0",
"nyc": "^14.1.1",
"remark-cli": "^7.0.0",
"remark-preset-lint-recommended": "^3.0.3",
"source-map-support": "^0.5.13",
"ts-node": "^8.3.0",
"tslint": "^5.18.0",
"typescript": "^3.5.3"
},

@@ -56,3 +58,19 @@ "dependencies": {},

]
},
"nyc": {
"exclude": [
"test/**/*.ts",
"lib/**/*.js"
],
"extension": [
".ts"
],
"sourceMap": true,
"instrument": true,
"reporter": [
"lcov",
"text"
],
"report-dir": "coverage"
}
}

@@ -7,2 +7,3 @@ [![Build Status](https://travis-ci.org/Borewit/token-types.svg?branch=master)](https://travis-ci.org/Borewit/token-types)

[![Codacy Badge](https://api.codacy.com/project/badge/Grade/4723ce4613fc49cda8db5eed29f18834)](https://www.codacy.com/app/Borewit/token-types?utm_source=github.com&utm_medium=referral&utm_content=Borewit/token-types&utm_campaign=Badge_Grade)
[![DeepScan grade](https://deepscan.io/api/teams/5165/projects/6940/branches/61852/badge/grade.svg)](https://deepscan.io/dashboard#view=project&tid=5165&pid=6940&bid=61852)
[![Known Vulnerabilities](https://snyk.io/test/github/Borewit/token-types/badge.svg?targetFile=package.json)](https://snyk.io/test/github/Borewit/token-types?targetFile=package.json)

@@ -34,7 +35,7 @@

Complex tokens can be added, which makes very suitable for reading binary files or network messages:
```JavaScript
public static ExtendedHeader: Token.IGetToken<IExtendedHeader> = {
```javascript
ExtendedHeader = {
len: 10,
get: (buf, off): IExtendedHeader => {
get: (buf, off) => {
return {

@@ -52,2 +53,2 @@ // Extended header size

};
```
```
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