bc-stubs 105.0.2 → 105.0.3

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/bc/lzstring.d.ts +109 -0
  2. package/package.json +2 -4
@@ -0,0 +1,109 @@
1
+ /**
2
+ * MIT License
3
+
4
+ Copyright (c) Microsoft Corporation. All rights reserved.
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE
23
+ */
24
+
25
+ // Type definitions for lz-string 1.3
26
+ // Project: https://github.com/pieroxy/lz-string, http://pieroxy.net/blog/pages/lz-string/index.html
27
+ // Definitions by: Roman Nikitin <https://github.com/M0ns1gn0r>
28
+ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
29
+
30
+ /** LZ-based compression algorithm for JavaScript */
31
+ declare namespace LZString {
32
+ /**
33
+ * Compresses input string producing an instance of an "invalid" UTF-16 string.
34
+ * Such string could be stored in localStorage only on webkit
35
+ * browsers (tested on Android, Chrome, Safari).
36
+ *
37
+ * @param uncompressed A string which should be compressed.
38
+ */
39
+ export function compress(uncompressed: string): string;
40
+
41
+ /**
42
+ * Decompresses "invalid" input string created by the method compress().
43
+ *
44
+ * @param compressed A string obtained from a call to compress().
45
+ */
46
+ export function decompress(compressed: string): null | string;
47
+
48
+ /**
49
+ * Compresses input string producing an instance of a "valid" UTF-16 string,
50
+ * in the sense that all browsers can store them safely.
51
+ *
52
+ * @param uncompressed A string which should be compressed.
53
+ */
54
+ export function compressToUTF16(uncompressed: string): string;
55
+
56
+ /**
57
+ * Decompresses "valid" input string created by the method compressToUTF16().
58
+ *
59
+ * @param compressed A string obtained from a call to compressToUTF16().
60
+ */
61
+ export function decompressFromUTF16(compressed: string): null | string;
62
+
63
+ /**
64
+ * Compresses input string producing an instance of a ASCII UTF-16 string,
65
+ * which represents the original string encoded in Base64.
66
+ * The result can be safely transported outside the browser with a
67
+ * guarantee that none of the characters produced need to be URL-encoded.
68
+ *
69
+ * @param uncompressed A string which should be compressed.
70
+ */
71
+ export function compressToBase64(uncompressed: string): string;
72
+
73
+ /**
74
+ * Decompresses ASCII UTF-16 input string created by the method compressToBase64().
75
+ *
76
+ * @param compressed A string obtained from a call to compressToBase64().
77
+ */
78
+ export function decompressFromBase64(compressed: string): null | string;
79
+
80
+ /**
81
+ * produces ASCII strings representing the original string encoded in Base64 with a few
82
+ * tweaks to make these URI safe. Hence, you can send them to the server without thinking
83
+ * about URL encoding them. This saves bandwidth and CPU
84
+ *
85
+ * @param uncompressed A string which should be compressed.
86
+ */
87
+ export function compressToEncodedURIComponent(uncompressed: string): string;
88
+
89
+ /**
90
+ * Decompresses "valid" input string created by the method compressToEncodedURIComponent().
91
+ *
92
+ * @param compressed A string obtained from a call to compressToEncodedURIComponent().
93
+ */
94
+ export function decompressFromEncodedURIComponent(compressed: string): null | string;
95
+
96
+ /**
97
+ * produces an uint8Array
98
+ *
99
+ * @param uncompressed A string which should be compressed.
100
+ */
101
+ export function compressToUint8Array(uncompressed: string): Uint8Array;
102
+
103
+ /**
104
+ * Decompresses "valid" array created by the method compressToUint8Array().
105
+ *
106
+ * @param compressed A string obtained from a call to compressToUint8Array().
107
+ */
108
+ export function decompressFromUint8Array(compressed: Uint8Array): null | string;
109
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bc-stubs",
3
- "version": "105.0.2",
3
+ "version": "105.0.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@github.com/bananarama92/BC-stubs.git"
@@ -18,9 +18,7 @@
18
18
  },
19
19
  "homepage": "https://github.com/bananarama92/BC-stubs#readme",
20
20
  "dependencies": {
21
- "socket.io-client": "4.6.1",
22
- "@types/lz-string": "1.3.34",
23
- "typescript": ">=5.5.0"
21
+ "socket.io-client": "4.6.1"
24
22
  },
25
23
  "typeScriptVersion": "^5.5.2"
26
24
  }