@clockworkdog/cogs-client 2.0.0-beta.4 → 2.0.0
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.
- package/README.md +2 -2
- package/dist/AudioPlayer.js +2 -2
- package/dist/CogsConnection.d.ts +1 -1
- package/dist/browser/index.js +5 -5
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/types/ManifestTypes.d.ts +1 -1
- package/package.json +1 -1
- /package/dist/types/{CogsPluginManifestJson.d.ts → CogsPluginManifest.d.ts} +0 -0
- /package/dist/types/{CogsPluginManifestJson.js → CogsPluginManifest.js} +0 -0
package/README.md
CHANGED
|
@@ -36,7 +36,7 @@ See [PluginManifestJson](https://clockwork-dog.github.io/cogs-client-lib/interfa
|
|
|
36
36
|
|
|
37
37
|
If using Typescript set `"allowJs": true` in your `tsconfig.json`.
|
|
38
38
|
|
|
39
|
-
Use the `@type {const}` JSDoc annotation to allow the manifest to be imported as a literal type and `@satisfies {import("@clockworkdog/cogs-client").
|
|
39
|
+
Use the `@type {const}` JSDoc annotation to allow the manifest to be imported as a literal type and `@satisfies {import("@clockworkdog/cogs-client").CogsPluginManifest}` to allow your editor to check the validity of the manifest.
|
|
40
40
|
|
|
41
41
|
e.g.
|
|
42
42
|
|
|
@@ -44,7 +44,7 @@ e.g.
|
|
|
44
44
|
module.exports =
|
|
45
45
|
/**
|
|
46
46
|
* @type {const}
|
|
47
|
-
* @satisfies {import("@clockworkdog/cogs-client").
|
|
47
|
+
* @satisfies {import("@clockworkdog/cogs-client").CogsPluginManifest}
|
|
48
48
|
*/
|
|
49
49
|
({
|
|
50
50
|
name: 'Big Button',
|
package/dist/AudioPlayer.js
CHANGED
|
@@ -256,8 +256,8 @@ class AudioPlayer {
|
|
|
256
256
|
// Set callback after starting new fade, otherwise it will fire straight away as the previous fade is cancelled
|
|
257
257
|
clipPlayer.player.once('fade', (soundId) => {
|
|
258
258
|
clipPlayer.player.loop(false, soundId);
|
|
259
|
-
clipPlayer.player.stop(soundId)
|
|
260
|
-
});
|
|
259
|
+
clipPlayer.player.stop(soundId);
|
|
260
|
+
}, soundId);
|
|
261
261
|
log('CLIP -> stopping', soundId);
|
|
262
262
|
clip.state = { type: 'stopping' };
|
|
263
263
|
}
|
package/dist/CogsConnection.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import ShowPhase from './types/ShowPhase';
|
|
|
2
2
|
import CogsClientMessage from './types/CogsClientMessage';
|
|
3
3
|
import MediaClipStateMessage from './types/MediaClipStateMessage';
|
|
4
4
|
import AllMediaClipStatesMessage from './types/AllMediaClipStatesMessage';
|
|
5
|
-
import { CogsPluginManifest, PluginManifestEventJson } from './types/
|
|
5
|
+
import { CogsPluginManifest, PluginManifestEventJson } from './types/CogsPluginManifest';
|
|
6
6
|
import * as ManifestTypes from './types/ManifestTypes';
|
|
7
7
|
import { DeepReadonly } from './types/utils';
|
|
8
8
|
export default class CogsConnection<Manifest extends CogsPluginManifest> {
|