ttfm-socket 1.0.5 → 1.0.6

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.
@@ -0,0 +1,27 @@
1
+ export interface BaseOperation {
2
+ path: string;
3
+ }
4
+ export interface AddOperation extends BaseOperation {
5
+ op: "add";
6
+ value: unknown;
7
+ }
8
+ export interface RemoveOperation extends BaseOperation {
9
+ op: "remove";
10
+ }
11
+ export interface ReplaceOperation extends BaseOperation {
12
+ op: "replace";
13
+ value: unknown;
14
+ }
15
+ export interface MoveOperation extends BaseOperation {
16
+ op: "move";
17
+ from: string;
18
+ }
19
+ export interface CopyOperation extends BaseOperation {
20
+ op: "copy";
21
+ from: string;
22
+ }
23
+ export interface TestOperation extends BaseOperation {
24
+ op: "test";
25
+ value: unknown;
26
+ }
27
+ export declare type Operation = AddOperation | RemoveOperation | ReplaceOperation | MoveOperation | CopyOperation | TestOperation;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=jsonPatch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsonPatch.js","sourceRoot":"","sources":["../../src/types/jsonPatch.ts"],"names":[],"mappings":""}
@@ -1,6 +1,6 @@
1
- import { Operation } from "fast-json-patch";
2
1
  import { JoinRoomAction } from "../actions/joinRoom";
3
2
  import { ActionResponse } from "./actionhero";
3
+ import { Operation } from "./jsonPatch";
4
4
  export declare const StatefulServerMessageName: {
5
5
  readonly addedDj: "addedDj";
6
6
  readonly lookedUpSong: "lookedUpSong";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ttfm-socket",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "main": "./dist-client/client/index.js",
5
5
  "typings": "./dist-client/client/index.d.ts",
6
6
  "devDependencies": {
@@ -18,6 +18,7 @@
18
18
  "aws-sdk-client-mock": "^3.0.0",
19
19
  "eslint": "^8.45.0",
20
20
  "eslint-plugin-prettier": "^5.0.0",
21
+ "fast-json-patch": "^3.1.1",
21
22
  "jest": "^29.6.1",
22
23
  "jest-fetch-mock": "^3.0.3",
23
24
  "prettier": "^3.0.0",
@@ -76,6 +77,7 @@
76
77
  "./dist-client/types/messages.*",
77
78
  "./dist-client/types/state.*",
78
79
  "./dist-client/types/services.*",
80
+ "./dist-client/types/jsonPatch.*",
79
81
  "./dist-client/client/*"
80
82
  ],
81
83
  "license": "MIT"