sdk fixes

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-02-26 22:15:10 +01:00
parent 117a8797a1
commit 09037969d8
12 changed files with 33 additions and 55 deletions

View File

@@ -121,10 +121,6 @@ export class Mixan<Options extends MixanOptions = MixanOptions> {
// Public
public init(properties?: Record<string, unknown>) {
this.state.properties = properties ?? {};
}
public setProfileId(profileId: string) {
this.state.profileId = profileId;
}
@@ -206,6 +202,7 @@ export class Mixan<Options extends MixanOptions = MixanOptions> {
public clear() {
this.state.properties = {};
this.state.deviceId = undefined;
this.state.profileId = undefined;
if (this.options.removeDeviceId) {
this.options.removeDeviceId();
}

View File

@@ -8,13 +8,12 @@
"format": "prettier --check \"**/*.{mjs,ts,md,json}\"",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@mixan/types": "workspace:*"
},
"dependencies": {},
"devDependencies": {
"@mixan/eslint-config": "workspace:*",
"@mixan/prettier-config": "workspace:*",
"@mixan/tsconfig": "workspace:*",
"@mixan/types": "workspace:*",
"eslint": "^8.48.0",
"prettier": "^3.0.3",
"tsup": "^7.2.0",