Skip to content

Commit

Permalink
1.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinGruber committed Sep 29, 2024
1 parent 1531e0e commit de505ec
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 106 deletions.
27 changes: 27 additions & 0 deletions bench.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const benchmark_1 = __importDefault(require("benchmark"));
const dataschema_1 = __importDefault(require("./src/dataschema"));
var suite = new benchmark_1.default.Suite;
const schema = require("./tests/data/skychangeschema.json");
const data = Buffer.from(require("./tests/data/skychangeresult.json"));
const obj = require("./tests/data/skychangeobj.json");
// add tests
suite.add('parse', function () {
dataschema_1.default.parse(schema, data, 0);
})
.add('calculate', function () {
dataschema_1.default.calculateDataLength(schema, obj);
})
.add('pack', function () {
dataschema_1.default.pack(schema, obj);
})
// add listeners
.on('cycle', function (event) {
console.log(String(event.target));
})
// run async
.run({ 'async': false });
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "h1z1-dataschema",
"description": "Parsing and packing structured binary data formats for h1z1",
"version": "1.7.2",
"version": "1.8.0",
"main": "src/dataschema.js",
"repository": {
"type": "git",
"url": "https://github.com/H1emu/h1z1-dataschema"
},
"scripts": {
"build": "tsc",
"test": "tsc && tsc -p tests && node --test"
"test": "tsc && node --test"
},
"dependencies": {
"h1z1-buffer": "^1.0.2"
Expand Down
100 changes: 0 additions & 100 deletions tests/tsconfig.json

This file was deleted.

3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,5 @@
/* Completeness */
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
"skipLibCheck": true /* Skip type checking all .d.ts files. */
},
"exclude": ["tests"]
}
}

0 comments on commit de505ec

Please sign in to comment.