Skip to content

Commit

Permalink
NORSUB-eMRU: v1.0.6
Browse files Browse the repository at this point in the history
NORSUB-eMRU: v1.0.6
  • Loading branch information
crisconru authored May 16, 2024
2 parents 4795fe0 + ab93a03 commit 2b8f72e
Show file tree
Hide file tree
Showing 7 changed files with 894 additions and 24 deletions.
13 changes: 8 additions & 5 deletions packages/norsub-emru/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@coremarine/norsub-emru",
"version": "1.0.5",
"version": "1.0.6",
"description": "Library to work with eMRU devices of NorSub company",
"author": "Core Marine",
"license": "MIT",
Expand Down Expand Up @@ -44,14 +44,15 @@
"node": ">= 18"
},
"scripts": {
"protocols": "node yaml-to-json.js ./protocols/norsub.yaml ./src/norsub.ts",
"build": "npm run protocols && npm run format && tsc",
"lint": "ts-standard",
"format": "ts-standard --fix",
"build": "tsc && cp -r ./src/norsub.yaml ./dist",
"test": "vitest",
"test": "npm run protocols && vitest",
"test:coverage": "vitest run --coverage"
},
"dependencies": {
"@coremarine/nmea-parser": ">=1.6.13",
"@coremarine/nmea-parser": ">=1.6.14",
"@schemasjs/valibot-numbers": "^1.0.8"
},
"peerDependencies": {
Expand All @@ -60,7 +61,9 @@
"ts-standard": {
"ignore": [
"tests",
"vitest.config.ts"
"vitest.config.ts",
"tsup.config.ts",
"yaml-to-json.js"
]
},
"eslintConfig": {
Expand Down
File renamed without changes.
13 changes: 0 additions & 13 deletions packages/norsub-emru/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
import path from 'node:path'
import { fileURLToPath } from 'node:url'
// DIR
export const DIRNAME = ((): string => {
try {
// CJS
return __dirname
} catch (error) {
// ESM
const filename = fileURLToPath(import.meta.url)
return path.dirname(filename)
}
})()
// GENERATE NUMBERS
export const UINT8_MAX = Uint8Array.from([0b1111_1111])[0]
export const UINT16_MAX = Uint16Array.from([0b1111_1111_1111_1111])[0]
Expand Down
Loading

0 comments on commit 2b8f72e

Please sign in to comment.