Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Commit 31cc3d0

Browse files
committed
🔖 Release v0.0.4
1 parent 0b52afa commit 31cc3d0

File tree

6 files changed

+16
-14
lines changed

6 files changed

+16
-14
lines changed

dist/constants.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
export declare const Commands: {
1+
export declare const Command: {
22
readonly LOCK: 82;
33
readonly UNLOCK: 83;
44
readonly TOGGLE: 88;
55
};
6-
export declare type Command = typeof Commands[keyof typeof Commands];
6+
export declare type Command = typeof Command[keyof typeof Command];
77
export declare type CommandOption = "lock" | "unlock" | "toggle";
88
export declare const CommandOptions: readonly CommandOption[];
9-
export declare const Types: {
9+
export declare const Type: {
1010
readonly NONE: 0;
1111
readonly BLE_LOCK: 1;
1212
readonly BLE_UNLOCK: 2;
@@ -22,10 +22,10 @@ export declare const Types: {
2222
readonly DRIVE_FAILED: 12;
2323
readonly BLE_ADV_PARAMETER_UPDATED: 13;
2424
};
25-
export declare type Type = typeof Types[keyof typeof Types];
26-
export declare const Statuses: {
25+
export declare type Type = typeof Type[keyof typeof Type];
26+
export declare const Status: {
2727
readonly LOCKED: "locked";
2828
readonly UNLOCKED: "unlocked";
2929
readonly MOVED: "moved";
3030
};
31-
export declare type Status = typeof Statuses[keyof typeof Statuses];
31+
export declare type Status = typeof Status[keyof typeof Status];

dist/constants.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"use strict";
22
Object.defineProperty(exports, "__esModule", { value: true });
3-
exports.Statuses = exports.Types = exports.CommandOptions = exports.Commands = void 0;
4-
exports.Commands = {
3+
exports.Status = exports.Type = exports.CommandOptions = exports.Command = void 0;
4+
exports.Command = {
55
LOCK: 82,
66
UNLOCK: 83,
77
TOGGLE: 88,
@@ -11,7 +11,7 @@ exports.CommandOptions = [
1111
"unlock",
1212
"toggle",
1313
];
14-
exports.Types = {
14+
exports.Type = {
1515
NONE: 0,
1616
BLE_LOCK: 1,
1717
BLE_UNLOCK: 2,
@@ -27,7 +27,7 @@ exports.Types = {
2727
DRIVE_FAILED: 12,
2828
BLE_ADV_PARAMETER_UPDATED: 13,
2929
};
30-
exports.Statuses = {
30+
exports.Status = {
3131
LOCKED: "locked",
3232
UNLOCKED: "unlocked",
3333
MOVED: "moved",

dist/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
export { Sesame } from "./Sesame";
22
export * from "./constants";
3+
export * from "./types";

dist/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ exports.Sesame = void 0;
1414
var Sesame_1 = require("./Sesame");
1515
Object.defineProperty(exports, "Sesame", { enumerable: true, get: function () { return Sesame_1.Sesame; } });
1616
__exportStar(require("./constants"), exports);
17+
__exportStar(require("./types"), exports);

dist/utils.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ exports.generateSign = generateSign;
3030
const parseCommand = (cmd) => {
3131
switch (cmd) {
3232
case "lock":
33-
return constants_1.Commands.LOCK;
33+
return constants_1.Command.LOCK;
3434
case "unlock":
35-
return constants_1.Commands.UNLOCK;
35+
return constants_1.Command.UNLOCK;
3636
case "toggle":
37-
return constants_1.Commands.TOGGLE;
37+
return constants_1.Command.TOGGLE;
3838
}
3939
};
4040
exports.parseCommand = parseCommand;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@kemuridama/sesame-client",
3-
"version": "0.0.2",
3+
"version": "0.0.4",
44
"description": "SESAME (OS2) client for Node.js and CLI tool",
55
"main": "dist/index.js",
66
"files": ["dist/"],

0 commit comments

Comments
 (0)