@hytopia.com/server-protocol 1.2.7 → 1.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/schemas/Audio.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hytopia.com/server-protocol",
3
- "version": "1.2.7",
3
+ "version": "1.2.8",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/schemas/Audio.ts CHANGED
@@ -7,7 +7,7 @@ export type AudioSchema = {
7
7
  a?: string; // audio uri
8
8
  d?: number; // duration
9
9
  de?: number; // detune
10
- f?: number; // follows entity id
10
+ e?: number; // entity attachment, follows entity id
11
11
  g?: number; // gain (0 to 1, or 1+ for distortion)
12
12
  l?: boolean; // loop
13
13
  o?: boolean; // one shot
@@ -27,7 +27,7 @@ export const audioSchema: JSONSchemaType<AudioSchema> = {
27
27
  a: { type: 'string', nullable: true },
28
28
  d: { type: 'number', nullable: true },
29
29
  de: { type: 'number', nullable: true },
30
- f: { type: 'number', nullable: true },
30
+ e: { type: 'number', nullable: true },
31
31
  g: { type: 'number', minimum: 0, nullable: true },
32
32
  l: { type: 'boolean', nullable: true },
33
33
  o: { type: 'boolean', nullable: true },