kozz-module-maker 0.1.21 → 0.2.1
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/.babelrc +24 -0
- package/bun.lock +617 -0
- package/dist/InlineCommands/index.js +19 -11
- package/dist/Instance/Basic/index.d.ts +40 -0
- package/dist/Instance/Basic/index.js +43 -0
- package/dist/Instance/Basic/index.js.map +1 -0
- package/dist/Instance/BasicController/index.d.ts +40 -0
- package/dist/Instance/BasicController/index.js +43 -0
- package/dist/Instance/BasicController/index.js.map +1 -0
- package/dist/Instance/CommandHandler/index.d.ts +20 -0
- package/dist/Instance/CommandHandler/index.js +26 -0
- package/dist/Instance/CommandHandler/index.js.map +1 -0
- package/dist/Instance/Common/ResourceMap/index.js +17 -15
- package/dist/Instance/Common/UseFns/index.js +24 -19
- package/dist/Instance/Common/index.js +31 -9
- package/dist/Instance/Common/onEvent/index.js +82 -76
- package/dist/Instance/Common/onEvent/index.js.map +1 -1
- package/dist/Instance/GeneralHandler/index.d.ts +19 -0
- package/dist/Instance/GeneralHandler/index.js +49 -0
- package/dist/Instance/GeneralHandler/index.js.map +1 -0
- package/dist/Instance/GeneralModule/index.d.ts +1 -2
- package/dist/Instance/GeneralModule/index.js +83 -58
- package/dist/Instance/GeneralModule/index.js.map +1 -1
- package/dist/Instance/Handler/index.d.ts +23 -0
- package/dist/Instance/Handler/index.js +26 -0
- package/dist/Instance/Handler/index.js.map +1 -0
- package/dist/Instance/Proxy/index.d.ts +22 -0
- package/dist/Instance/Proxy/index.js +36 -0
- package/dist/Instance/Proxy/index.js.map +1 -0
- package/dist/Instance/index.d.ts +14 -0
- package/dist/Instance/index.js +20 -0
- package/dist/Instance/index.js.map +1 -0
- package/dist/Message/FromTemplate/index.js +53 -46
- package/dist/Message/PayloadCreation/Media.js +40 -36
- package/dist/Message/PayloadCreation/Media.js.map +1 -1
- package/dist/Message/PayloadCreation/React.js +11 -9
- package/dist/Message/PayloadCreation/Reply.js +37 -35
- package/dist/Message/PayloadCreation/Reply.js.map +1 -1
- package/dist/Message/PayloadCreation/ReplyWithSticker.d.ts +0 -0
- package/dist/Message/PayloadCreation/ReplyWithSticker.js +1 -0
- package/dist/Message/PayloadCreation/ReplyWithText.d.ts +2 -0
- package/dist/Message/PayloadCreation/ReplyWithText.js +15 -0
- package/dist/Message/PayloadCreation/deleteMessage.js +10 -8
- package/dist/Message/PayloadCreation/index.js +25 -17
- package/dist/Message/PayloadCreation/sendMessage.js +23 -21
- package/dist/Message/PayloadCreation/sendMessage.js.map +1 -1
- package/dist/Message/ProxiedMessage/index.d.ts +1 -1
- package/dist/Message/ProxiedMessage/index.js +17 -11
- package/dist/Message/RoutineCreation/AskResource/AskResourceApi/index.js +21 -16
- package/dist/Message/RoutineCreation/AskResource/index.js +58 -56
- package/dist/Message/RoutineCreation/DeleteMessage/index.js +18 -14
- package/dist/Message/RoutineCreation/Reply/WithMedia.js +32 -30
- package/dist/Message/RoutineCreation/Reply/WithSticke.d.ts +3 -0
- package/dist/Message/RoutineCreation/Reply/WithSticke.js +9 -0
- package/dist/Message/RoutineCreation/Reply/WithSticke.js.map +1 -0
- package/dist/Message/RoutineCreation/Reply/WithSticker.js +14 -8
- package/dist/Message/RoutineCreation/Reply/WithTemplate.js +15 -15
- package/dist/Message/RoutineCreation/Reply/index.js +25 -9
- package/dist/Message/RoutineCreation/SendMessage/index.js +25 -23
- package/dist/Message/RoutineCreation/SendMessage/index.js.map +1 -1
- package/dist/Message/RoutineCreation/reply.js +16 -14
- package/dist/Message/index.d.ts +1 -1
- package/dist/Message/index.js +49 -46
- package/dist/Message/kozz-md.parser/index.js +42 -92
- package/dist/Message/zap-md.parser/index.d.ts +1 -0
- package/dist/Message/zap-md.parser/index.js +2 -0
- package/dist/MessageTemplate/h.d.ts +3 -0
- package/dist/MessageTemplate/h.js +24 -0
- package/dist/MessageTemplate/h.js.map +1 -0
- package/dist/MessageTemplate/htm.d.ts +1 -0
- package/dist/MessageTemplate/htm.js +10 -0
- package/dist/MessageTemplate/htm.js.map +1 -0
- package/dist/MessageTemplate/renderer.d.ts +13 -0
- package/dist/MessageTemplate/renderer.js +62 -0
- package/dist/MessageTemplate/renderer.js.map +1 -0
- package/dist/MessageTemplate/types.d.ts +12 -0
- package/dist/MessageTemplate/types.js +5 -0
- package/dist/MessageTemplate/types.js.map +1 -0
- package/dist/Schema/index.js +11 -9
- package/dist/Socket/Events/Command.d.ts +3 -0
- package/dist/Socket/Events/Command.js +19 -0
- package/dist/Socket/Events/Command.js.map +1 -0
- package/dist/Socket/Events/Emit/ForwardEvent.js +19 -17
- package/dist/Socket/Events/Emit/Introduction.js +12 -10
- package/dist/Socket/Events/Emit/ProxyRequest.d.ts +0 -0
- package/dist/Socket/Events/Emit/ProxyRequest.js +2 -0
- package/dist/Socket/Events/Emit/ProxyRequest.js.map +1 -0
- package/dist/Socket/Events/Emit/RequestProxy.js +13 -10
- package/dist/Socket/Events/Emit/RevokeProxy.js +9 -7
- package/dist/Socket/Events/Handle/AskResource.js +27 -25
- package/dist/Socket/Events/Handle/Command.js +35 -38
- package/dist/Socket/Events/Handle/ProxiedMessage.js +11 -9
- package/dist/Socket/Events/Introduction.d.ts +3 -0
- package/dist/Socket/Events/Introduction.js +15 -0
- package/dist/Socket/Events/Introduction.js.map +1 -0
- package/dist/Socket/Events/ProxiedMessage.d.ts +2 -0
- package/dist/Socket/Events/ProxiedMessage.js +10 -0
- package/dist/Socket/Events/ProxiedMessage.js.map +1 -0
- package/dist/Socket/Messages/Command.d.ts +2 -0
- package/dist/Socket/Messages/Command.js +6 -0
- package/dist/Socket/Messages/Command.js.map +1 -0
- package/dist/Socket/Messages/Introduction.d.ts +3 -0
- package/dist/Socket/Messages/Introduction.js +15 -0
- package/dist/Socket/Messages/Introduction.js.map +1 -0
- package/dist/Socket/index.js +17 -15
- package/dist/StateMachine/index.js +44 -38
- package/dist/Validator/index.js +41 -38
- package/dist/debugIndex.d.ts +1 -0
- package/dist/debugIndex.js +73 -0
- package/dist/debugIndex.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +47 -18
- package/dist/index.js.map +1 -1
- package/dist/jsx-runtime/MessageTemplating.js +51 -0
- package/dist/jsx-runtime/index.js +83 -0
- package/dist/messages.kozz.md +52 -0
- package/dist/util/index.js +63 -59
- package/dist/util/index.js.map +1 -1
- package/dist/util.d.ts +8 -0
- package/dist/util.js +36 -0
- package/dist/util.js.map +1 -0
- package/package.json +21 -17
- package/tsconfig.json +26 -97
- package/jest.config.ts +0 -196
- package/test.kozz.md +0 -81
package/package.json
CHANGED
|
@@ -1,32 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kozz-module-maker",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Library to create new module for the Kozz-Bot protocol",
|
|
5
5
|
"main": "./dist",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
"prepublish": "tsc"
|
|
8
|
+
"build": "babel ./src --out-dir ./dist --extensions .ts,.tsx --copy-files",
|
|
9
|
+
"dev": "bun run build -- --watch & nodemon --watch dist --exec 'bun run dist/debugIndex.js'",
|
|
10
|
+
"prepublish": "build"
|
|
11
|
+
},
|
|
12
|
+
"peerDependencies": {
|
|
13
|
+
"typescript": "^5.9.2"
|
|
15
14
|
},
|
|
16
15
|
"devDependencies": {
|
|
17
|
-
"@types/jest": "^29.
|
|
18
|
-
"concurrently": "^7.
|
|
19
|
-
"kozz-types": "^0.1.
|
|
16
|
+
"@types/jest": "^29.5.14",
|
|
17
|
+
"concurrently": "^7.6.0",
|
|
18
|
+
"kozz-types": "^0.1.22",
|
|
20
19
|
"nodemon": "^2.0.22",
|
|
21
|
-
"typedoc": "^0.23.
|
|
22
|
-
"
|
|
20
|
+
"typedoc": "^0.23.28",
|
|
21
|
+
"@babel/cli": "^7.28.3",
|
|
22
|
+
"@babel/core": "^7.28.3",
|
|
23
|
+
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
24
|
+
"@babel/plugin-proposal-object-rest-spread": "^7.20.7",
|
|
25
|
+
"@babel/preset-env": "^7.28.3",
|
|
26
|
+
"@babel/preset-react": "^7.27.1",
|
|
27
|
+
"@babel/preset-typescript": "^7.27.1",
|
|
28
|
+
"babel": "^6.23.0"
|
|
23
29
|
},
|
|
24
30
|
"dependencies": {
|
|
25
31
|
"arcsecond": "^5.0.0",
|
|
26
|
-
"dotenv": "^16.
|
|
27
|
-
"
|
|
28
|
-
"link-module-alias": "^1.2.0",
|
|
29
|
-
"socket.io-client": "^4.6.1"
|
|
32
|
+
"dotenv": "^16.6.1",
|
|
33
|
+
"socket.io-client": "^4.8.1"
|
|
30
34
|
},
|
|
31
35
|
"_moduleAliases": {
|
|
32
36
|
"src": "dist"
|
package/tsconfig.json
CHANGED
|
@@ -1,100 +1,29 @@
|
|
|
1
1
|
{
|
|
2
2
|
"compilerOptions": {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
//
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
// "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
|
|
30
|
-
"baseUrl": ".",
|
|
31
|
-
"paths": {
|
|
32
|
-
"src/*": ["src/*"]
|
|
33
|
-
},
|
|
34
|
-
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
|
35
|
-
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
|
|
36
|
-
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
|
|
37
|
-
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
|
38
|
-
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
|
|
39
|
-
// "resolveJsonModule": true, /* Enable importing .json files. */
|
|
40
|
-
// "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
|
|
41
|
-
/* JavaScript Support */
|
|
42
|
-
// "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
|
|
43
|
-
// "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
|
|
44
|
-
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
|
|
45
|
-
/* Emit */
|
|
46
|
-
"declaration": true /* Generate .d.ts files from TypeScript and JavaScript files in your project. */,
|
|
47
|
-
"declarationMap": false /* Create sourcemaps for d.ts files. */,
|
|
48
|
-
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
|
|
49
|
-
"sourceMap": true /* Create source map files for emitted JavaScript files. */,
|
|
50
|
-
//"outFile": "./dist/index.js" /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */,
|
|
51
|
-
"outDir": "./dist" /* Specify an output folder for all emitted files. */,
|
|
52
|
-
"removeComments": false /* Disable emitting comments. */,
|
|
53
|
-
// "noEmit": true, /* Disable emitting files from a compilation. */
|
|
54
|
-
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
|
|
55
|
-
// "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
|
|
56
|
-
// "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
|
|
57
|
-
// "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
|
|
58
|
-
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
|
59
|
-
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
|
|
60
|
-
// "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
|
|
61
|
-
// "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
|
|
62
|
-
// "newLine": "crlf", /* Set the newline character for emitting files. */
|
|
63
|
-
// "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
|
|
64
|
-
// "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
|
|
65
|
-
// "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
|
|
66
|
-
// "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
|
|
67
|
-
// "declarationDir": "./", /* Specify the output directory for generated declaration files. */
|
|
68
|
-
// "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
|
|
69
|
-
/* Interop Constraints */
|
|
70
|
-
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
|
|
71
|
-
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
|
|
72
|
-
"esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
|
|
73
|
-
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
|
|
74
|
-
"forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
|
|
75
|
-
/* Type Checking */
|
|
76
|
-
"strict": true /* Enable all strict type-checking options. */,
|
|
77
|
-
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
|
|
78
|
-
// "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
|
|
79
|
-
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
|
|
80
|
-
// "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
|
|
81
|
-
// "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
|
|
82
|
-
// "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
|
|
83
|
-
// "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
|
|
84
|
-
// "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
|
|
85
|
-
// "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
|
|
86
|
-
// "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
|
|
87
|
-
// "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
|
|
88
|
-
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
|
|
89
|
-
// "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
|
|
90
|
-
// "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
|
|
91
|
-
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
|
|
92
|
-
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
|
|
93
|
-
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
|
|
94
|
-
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
|
|
95
|
-
/* Completeness */
|
|
96
|
-
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
|
97
|
-
"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
|
98
|
-
},
|
|
99
|
-
"exclude": ["./jest.config.ts", "./dist"]
|
|
3
|
+
// Environment setup & latest features
|
|
4
|
+
"lib": ["ESNext"],
|
|
5
|
+
"target": "ESNext",
|
|
6
|
+
"module": "Preserve",
|
|
7
|
+
"moduleDetection": "force",
|
|
8
|
+
"jsx": "preserve",
|
|
9
|
+
"allowJs": true,
|
|
10
|
+
|
|
11
|
+
// Bundler mode
|
|
12
|
+
"moduleResolution": "bundler",
|
|
13
|
+
"verbatimModuleSyntax": true,
|
|
14
|
+
"noEmit": true,
|
|
15
|
+
"outDir": "dist",
|
|
16
|
+
|
|
17
|
+
// Best practices
|
|
18
|
+
"strict": true,
|
|
19
|
+
"skipLibCheck": true,
|
|
20
|
+
"noFallthroughCasesInSwitch": true,
|
|
21
|
+
"noUncheckedIndexedAccess": true,
|
|
22
|
+
"noImplicitOverride": true,
|
|
23
|
+
|
|
24
|
+
// Some stricter flags (disabled by default)
|
|
25
|
+
"noUnusedLocals": false,
|
|
26
|
+
"noUnusedParameters": false,
|
|
27
|
+
"noPropertyAccessFromIndexSignature": false
|
|
28
|
+
}
|
|
100
29
|
}
|
package/jest.config.ts
DELETED
|
@@ -1,196 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* For a detailed explanation regarding each configuration property and type check, visit:
|
|
3
|
-
* https://jestjs.io/docs/configuration
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
export default {
|
|
7
|
-
// All imported modules in your tests should be mocked automatically
|
|
8
|
-
// automock: false,
|
|
9
|
-
|
|
10
|
-
// Stop running tests after `n` failures
|
|
11
|
-
// bail: 0,
|
|
12
|
-
|
|
13
|
-
// The directory where Jest should store its cached dependency information
|
|
14
|
-
// cacheDirectory: "C:\\Users\\guiga\\AppData\\Local\\Temp\\jest",
|
|
15
|
-
|
|
16
|
-
// Automatically clear mock calls, instances, contexts and results before every test
|
|
17
|
-
clearMocks: true,
|
|
18
|
-
|
|
19
|
-
// Indicates whether the coverage information should be collected while executing the test
|
|
20
|
-
collectCoverage: true,
|
|
21
|
-
|
|
22
|
-
// An array of glob patterns indicating a set of files for which coverage information should be collected
|
|
23
|
-
// collectCoverageFrom: undefined,
|
|
24
|
-
|
|
25
|
-
// The directory where Jest should output its coverage files
|
|
26
|
-
coverageDirectory: "coverage",
|
|
27
|
-
|
|
28
|
-
// An array of regexp pattern strings used to skip coverage collection
|
|
29
|
-
// coveragePathIgnorePatterns: [
|
|
30
|
-
// "\\\\node_modules\\\\"
|
|
31
|
-
// ],
|
|
32
|
-
|
|
33
|
-
// Indicates which provider should be used to instrument code for coverage
|
|
34
|
-
coverageProvider: "v8",
|
|
35
|
-
|
|
36
|
-
// A list of reporter names that Jest uses when writing coverage reports
|
|
37
|
-
// coverageReporters: [
|
|
38
|
-
// "json",
|
|
39
|
-
// "text",
|
|
40
|
-
// "lcov",
|
|
41
|
-
// "clover"
|
|
42
|
-
// ],
|
|
43
|
-
|
|
44
|
-
// An object that configures minimum threshold enforcement for coverage results
|
|
45
|
-
// coverageThreshold: undefined,
|
|
46
|
-
|
|
47
|
-
// A path to a custom dependency extractor
|
|
48
|
-
// dependencyExtractor: undefined,
|
|
49
|
-
|
|
50
|
-
// Make calling deprecated APIs throw helpful error messages
|
|
51
|
-
// errorOnDeprecated: false,
|
|
52
|
-
|
|
53
|
-
// The default configuration for fake timers
|
|
54
|
-
// fakeTimers: {
|
|
55
|
-
// "enableGlobally": false
|
|
56
|
-
// },
|
|
57
|
-
|
|
58
|
-
// Force coverage collection from ignored files using an array of glob patterns
|
|
59
|
-
// forceCoverageMatch: [],
|
|
60
|
-
|
|
61
|
-
// A path to a module which exports an async function that is triggered once before all test suites
|
|
62
|
-
// globalSetup: undefined,
|
|
63
|
-
|
|
64
|
-
// A path to a module which exports an async function that is triggered once after all test suites
|
|
65
|
-
// globalTeardown: undefined,
|
|
66
|
-
|
|
67
|
-
// A set of global variables that need to be available in all test environments
|
|
68
|
-
// globals: {},
|
|
69
|
-
|
|
70
|
-
// The maximum amount of workers used to run your tests. Can be specified as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers.
|
|
71
|
-
// maxWorkers: "50%",
|
|
72
|
-
|
|
73
|
-
// An array of directory names to be searched recursively up from the requiring module's location
|
|
74
|
-
// moduleDirectories: [
|
|
75
|
-
// "node_modules"
|
|
76
|
-
// ],
|
|
77
|
-
|
|
78
|
-
// An array of file extensions your modules use
|
|
79
|
-
// moduleFileExtensions: [
|
|
80
|
-
// "js",
|
|
81
|
-
// "mjs",
|
|
82
|
-
// "cjs",
|
|
83
|
-
// "jsx",
|
|
84
|
-
// "ts",
|
|
85
|
-
// "tsx",
|
|
86
|
-
// "json",
|
|
87
|
-
// "node"
|
|
88
|
-
// ],
|
|
89
|
-
|
|
90
|
-
// A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
|
|
91
|
-
// moduleNameMapper: {},
|
|
92
|
-
|
|
93
|
-
// An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
|
|
94
|
-
// modulePathIgnorePatterns: [],
|
|
95
|
-
|
|
96
|
-
// Activates notifications for test results
|
|
97
|
-
// notify: false,
|
|
98
|
-
|
|
99
|
-
// An enum that specifies notification mode. Requires { notify: true }
|
|
100
|
-
// notifyMode: "failure-change",
|
|
101
|
-
|
|
102
|
-
// A preset that is used as a base for Jest's configuration
|
|
103
|
-
// preset: undefined,
|
|
104
|
-
|
|
105
|
-
// Run tests from one or more projects
|
|
106
|
-
// projects: undefined,
|
|
107
|
-
|
|
108
|
-
// Use this configuration option to add custom reporters to Jest
|
|
109
|
-
// reporters: undefined,
|
|
110
|
-
|
|
111
|
-
// Automatically reset mock state before every test
|
|
112
|
-
// resetMocks: false,
|
|
113
|
-
|
|
114
|
-
// Reset the module registry before running each individual test
|
|
115
|
-
// resetModules: false,
|
|
116
|
-
|
|
117
|
-
// A path to a custom resolver
|
|
118
|
-
// resolver: undefined,
|
|
119
|
-
|
|
120
|
-
// Automatically restore mock state and implementation before every test
|
|
121
|
-
// restoreMocks: false,
|
|
122
|
-
|
|
123
|
-
// The root directory that Jest should scan for tests and modules within
|
|
124
|
-
// rootDir: undefined,
|
|
125
|
-
|
|
126
|
-
// A list of paths to directories that Jest should use to search for files in
|
|
127
|
-
// roots: [
|
|
128
|
-
// "<rootDir>"
|
|
129
|
-
// ],
|
|
130
|
-
|
|
131
|
-
// Allows you to use a custom runner instead of Jest's default test runner
|
|
132
|
-
// runner: "jest-runner",
|
|
133
|
-
|
|
134
|
-
// The paths to modules that run some code to configure or set up the testing environment before each test
|
|
135
|
-
// setupFiles: [],
|
|
136
|
-
|
|
137
|
-
// A list of paths to modules that run some code to configure or set up the testing framework before each test
|
|
138
|
-
// setupFilesAfterEnv: [],
|
|
139
|
-
|
|
140
|
-
// The number of seconds after which a test is considered as slow and reported as such in the results.
|
|
141
|
-
// slowTestThreshold: 5,
|
|
142
|
-
|
|
143
|
-
// A list of paths to snapshot serializer modules Jest should use for snapshot testing
|
|
144
|
-
// snapshotSerializers: [],
|
|
145
|
-
|
|
146
|
-
// The test environment that will be used for testing
|
|
147
|
-
// testEnvironment: "jest-environment-node",
|
|
148
|
-
|
|
149
|
-
// Options that will be passed to the testEnvironment
|
|
150
|
-
// testEnvironmentOptions: {},
|
|
151
|
-
|
|
152
|
-
// Adds a location field to test results
|
|
153
|
-
// testLocationInResults: false,
|
|
154
|
-
|
|
155
|
-
// The glob patterns Jest uses to detect test files
|
|
156
|
-
// testMatch: [
|
|
157
|
-
// "**/__tests__/**/*.[jt]s?(x)",
|
|
158
|
-
// "**/?(*.)+(spec|test).[tj]s?(x)"
|
|
159
|
-
// ],
|
|
160
|
-
|
|
161
|
-
// An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
|
|
162
|
-
testPathIgnorePatterns: [
|
|
163
|
-
"\\\\node_modules\\\\",
|
|
164
|
-
"\\\\dist\\\\"
|
|
165
|
-
],
|
|
166
|
-
|
|
167
|
-
// The regexp pattern or array of patterns that Jest uses to detect test files
|
|
168
|
-
// testRegex: [],
|
|
169
|
-
|
|
170
|
-
// This option allows the use of a custom results processor
|
|
171
|
-
// testResultsProcessor: undefined,
|
|
172
|
-
|
|
173
|
-
// This option allows use of a custom test runner
|
|
174
|
-
// testRunner: "jest-circus/runner",
|
|
175
|
-
|
|
176
|
-
// A map from regular expressions to paths to transformers
|
|
177
|
-
// transform: undefined,
|
|
178
|
-
|
|
179
|
-
// An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
|
|
180
|
-
// transformIgnorePatterns: [
|
|
181
|
-
// "\\\\node_modules\\\\",
|
|
182
|
-
// "\\.pnp\\.[^\\\\]+$"
|
|
183
|
-
// ],
|
|
184
|
-
|
|
185
|
-
// An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
|
|
186
|
-
// unmockedModulePathPatterns: undefined,
|
|
187
|
-
|
|
188
|
-
// Indicates whether each individual test should be reported during the run
|
|
189
|
-
// verbose: undefined,
|
|
190
|
-
|
|
191
|
-
// An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode
|
|
192
|
-
// watchPathIgnorePatterns: [],
|
|
193
|
-
|
|
194
|
-
// Whether to use watchman for file crawling
|
|
195
|
-
// watchman: true,
|
|
196
|
-
};
|
package/test.kozz.md
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
> @NoTextToSpeak
|
|
2
|
-
|
|
3
|
-
# Erro
|
|
4
|
-
|
|
5
|
-
Insira algum texto para a mulher do google falar.
|
|
6
|
-
|
|
7
|
-
> ---
|
|
8
|
-
|
|
9
|
-
> @NoQuoteToTTS
|
|
10
|
-
|
|
11
|
-
# Erro
|
|
12
|
-
|
|
13
|
-
Responda uma mensagem para eu narrar!
|
|
14
|
-
|
|
15
|
-
> ---
|
|
16
|
-
|
|
17
|
-
> @OnlyTextMessages
|
|
18
|
-
|
|
19
|
-
# Erro
|
|
20
|
-
|
|
21
|
-
Só consigo narrar mensagens de texto.
|
|
22
|
-
|
|
23
|
-
> ---
|
|
24
|
-
|
|
25
|
-
> @MaxCharsExceeded
|
|
26
|
-
|
|
27
|
-
# ❗Aviso
|
|
28
|
-
|
|
29
|
-
O google só suporta 200 caracteres por vez. Seu texto foi cortado.
|
|
30
|
-
|
|
31
|
-
> ---
|
|
32
|
-
|
|
33
|
-
> @EmptyQuery
|
|
34
|
-
|
|
35
|
-
# Erro
|
|
36
|
-
|
|
37
|
-
Insira algo para eu buscar.
|
|
38
|
-
|
|
39
|
-
> ---
|
|
40
|
-
|
|
41
|
-
> @NoResults
|
|
42
|
-
|
|
43
|
-
# Erro
|
|
44
|
-
|
|
45
|
-
Não consegui obter resultados para a pesquisa.
|
|
46
|
-
|
|
47
|
-
> ---
|
|
48
|
-
|
|
49
|
-
> @SearchResults
|
|
50
|
-
|
|
51
|
-
O google encontrou {{totalResults}} em {{searchTime}} segundos
|
|
52
|
-
|
|
53
|
-
<br>
|
|
54
|
-
<br>
|
|
55
|
-
{{results}}
|
|
56
|
-
|
|
57
|
-
> ---
|
|
58
|
-
|
|
59
|
-
> @Help
|
|
60
|
-
|
|
61
|
-
# Google no zap!
|
|
62
|
-
|
|
63
|
-
- _*Google Web*_
|
|
64
|
-
Procure páginas web com o comando _*`!google web [pesquisa]`*_
|
|
65
|
-
<br>
|
|
66
|
-
- _*Google Images*_
|
|
67
|
-
Procure imagens na web com comando _*`!google image [pesquisa]`*_
|
|
68
|
-
Especifique a quantidade de imagens com o comando _*`!google image [pesquisa] -imgamount [quantidade]`*_
|
|
69
|
-
<br>
|
|
70
|
-
- _*Google Speak*_
|
|
71
|
-
Peça para a mulher do google narrar um texto com o comando _*`!google speak [texto]`*_
|
|
72
|
-
Especifique a lingua da narração com o comando _*`!google images [pesquisa] -lang [código da lingua]`*_
|
|
73
|
-
_❗Tabela com códigos de linguas:_ http://www.lingoes.net/en/translator/langcode.htm
|
|
74
|
-
|
|
75
|
-
> ---
|
|
76
|
-
|
|
77
|
-
> @Error
|
|
78
|
-
|
|
79
|
-
_*Erro inesperado:*_: {{error}}
|
|
80
|
-
|
|
81
|
-
> ---
|