summaryrefslogtreecommitdiff
path: root/includes/external/discord/node_modules/@tokenizer
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-03-21 16:21:21 +0100
committerRaindropsSys <contact@minteck.org>2023-03-21 16:21:21 +0100
commit475c5731bf3362b6ac8d2dc5d5b43e4b4a6117bd (patch)
tree2cff46debf9c1e13892e7babff9deb6874ecb4b2 /includes/external/discord/node_modules/@tokenizer
parent7ccc2de87f9e25c715dc09b9aba4eb5c66f80424 (diff)
downloadpluralconnect-475c5731bf3362b6ac8d2dc5d5b43e4b4a6117bd.tar.gz
pluralconnect-475c5731bf3362b6ac8d2dc5d5b43e4b4a6117bd.tar.bz2
pluralconnect-475c5731bf3362b6ac8d2dc5d5b43e4b4a6117bd.zip
Updated 26 files and added 1074 files (automated)
Diffstat (limited to 'includes/external/discord/node_modules/@tokenizer')
-rw-r--r--includes/external/discord/node_modules/@tokenizer/token/README.md19
-rw-r--r--includes/external/discord/node_modules/@tokenizer/token/index.d.ts30
-rw-r--r--includes/external/discord/node_modules/@tokenizer/token/package.json33
3 files changed, 82 insertions, 0 deletions
diff --git a/includes/external/discord/node_modules/@tokenizer/token/README.md b/includes/external/discord/node_modules/@tokenizer/token/README.md
new file mode 100644
index 0000000..4116049
--- /dev/null
+++ b/includes/external/discord/node_modules/@tokenizer/token/README.md
@@ -0,0 +1,19 @@
+[![npm version](https://badge.fury.io/js/%40tokenizer%2Ftoken.svg)](https://www.npmjs.com/package/@tokenizer/token)
+[![npm downloads](http://img.shields.io/npm/dm/@tokenizer/token.svg)](https://npmcharts.com/compare/@tokenizer/token?interval=30)
+
+# @tokenizer/token
+
+TypeScript definition of an [strtok3](https://github.com/Borewit/strtok3) token.
+
+## Licence
+
+(The MIT License)
+
+Copyright (c) 2020 Borewit
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
diff --git a/includes/external/discord/node_modules/@tokenizer/token/index.d.ts b/includes/external/discord/node_modules/@tokenizer/token/index.d.ts
new file mode 100644
index 0000000..3703b77
--- /dev/null
+++ b/includes/external/discord/node_modules/@tokenizer/token/index.d.ts
@@ -0,0 +1,30 @@
+/**
+ * Read-only token
+ * See https://github.com/Borewit/strtok3 for more information
+ */
+export interface IGetToken<Value, Array extends Uint8Array = Uint8Array> {
+
+ /**
+ * Length of encoded token in bytes
+ */
+ len: number;
+
+ /**
+ * Decode value from buffer at offset
+ * @param array - Uint8Array to read the decoded value from
+ * @param offset - Decode offset
+ * @return decoded value
+ */
+ get(array: Array, offset: number): Value;
+}
+
+export interface IToken<Value, Array extends Uint8Array = Uint8Array> extends IGetToken<Value, Array> {
+ /**
+ * Encode value to buffer
+ * @param array - Uint8Array to write the encoded value to
+ * @param offset - Buffer write offset
+ * @param value - Value to decode of type T
+ * @return offset plus number of bytes written
+ */
+ put(array: Array, offset: number, value: Value): number
+}
diff --git a/includes/external/discord/node_modules/@tokenizer/token/package.json b/includes/external/discord/node_modules/@tokenizer/token/package.json
new file mode 100644
index 0000000..4bb38fd
--- /dev/null
+++ b/includes/external/discord/node_modules/@tokenizer/token/package.json
@@ -0,0 +1,33 @@
+{
+ "name": "@tokenizer/token",
+ "version": "0.3.0",
+ "description": "TypeScript definition for strtok3 token",
+ "main": "",
+ "types": "index.d.ts",
+ "files": [
+ "index.d.ts"
+ ],
+ "keywords": [
+ "token",
+ "interface",
+ "tokenizer",
+ "TypeScript"
+ ],
+ "author": {
+ "name": "Borewit",
+ "url": "https://github.com/Borewit"
+ },
+ "license": "MIT",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/Borewit/tokenizer-token.git"
+ },
+ "bugs": {
+ "url": "https://github.com/Borewit/tokenizer-token/issues"
+ },
+ "typeScriptVersion": "3.0",
+ "dependencies": {},
+ "devDependencies": {
+ "@types/node": "^13.1.0"
+ }
+}