Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions .github/workflows/publish-package-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,7 @@ jobs:
run: npm ci --ignore-scripts --audit=false

- name: Build
run: |
if jq --exit-status '(.scripts // {}) | has("build")' package.json > /dev/null; then
echo "Running npm run build..."
npm run build
else
echo "No build script; skipping."
fi
run: npm run build --if-present

- name: Publish dry run
if: github.event_name == 'workflow_dispatch'
Expand Down
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ declare module "@athombv/data-types" {

// ToD
// date
// UTC
UTC: DataType<number>;

// clusterId
// attribId
Expand Down
2 changes: 1 addition & 1 deletion lib/DataTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ const DataTypes = {

// ToD : new DataType(224, 'ToD' , 4 , ),
// date : new DataType(225, 'date' , 4 , ),
// UTC : new DataType(226, 'UTC' , 4 , ),
UTC : new DataType(226, 'UTC' , 4 , uintToBuf , uintFromBuf ),

// clusterId : new DataType(232, 'clusterId' , 2 , ),
// attribId : new DataType(233, 'attribId' , 2 , ),
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@athombv/data-types",
"version": "1.2.2",
"version": "1.3.0",
"description": "Binary Data Parsers",
"main": "index.js",
"types": "index.d.ts",
Expand Down
2 changes: 2 additions & 0 deletions test/types-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const ints = Struct("Ints", {
i8: DataTypes.int8,
i32: DataTypes.int32,
u4: DataTypes.uint4,
utc: DataTypes.UTC,
sng: DataTypes.single,
dbl: DataTypes.double,
}).fromBuffer(emptyBuf());
Expand All @@ -51,6 +52,7 @@ const _intU32: number = ints.u32;
const _intI8: number = ints.i8;
const _intI32: number = ints.i32;
const _intU4: number = ints.u4;
const _intUtc: number = ints.utc;
const _intSng: number = ints.sng;
const _intDbl: number = ints.dbl;

Expand Down
Loading