@periskope/types 0.5.3 → 0.5.5

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/package.json CHANGED
@@ -1,14 +1,13 @@
1
1
  {
2
2
  "name": "@periskope/types",
3
- "version": "0.5.3",
3
+ "version": "0.5.5",
4
4
  "private": false,
5
- "main": "dist/types.js",
6
- "types": "dist/types.d.ts",
5
+ "main": "types.ts",
6
+ "types": "types.d.ts",
7
7
  "dependencies": {
8
8
  "type-fest": "^4.8.3",
9
9
  "whatsapp-web.js": "^1.23.0"
10
10
  },
11
- "type": "module",
12
11
  "scripts": {
13
12
  "update-package": "tsc && npm publish --access public"
14
13
  }
package/tsconfig.json CHANGED
@@ -11,7 +11,7 @@
11
11
  // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
12
12
 
13
13
  /* Language and Environment */
14
- "target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
14
+ "target": "ES2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
15
15
  // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
16
16
  // "jsx": "preserve", /* Specify what JSX code is generated. */
17
17
  // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
@@ -25,9 +25,9 @@
25
25
  // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
26
26
 
27
27
  /* Modules */
28
- "module": "ESNext", /* Specify what module code is generated. */
28
+ "module": "CommonJS", /* Specify what module code is generated. */
29
29
  // "rootDir": "./", /* Specify the root folder within your source files. */
30
- "moduleResolution": "Node", /* Specify how TypeScript looks up a file from a given module specifier. */
30
+ // "moduleResolution": "Node", /* Specify how TypeScript looks up a file from a given module specifier. */
31
31
  // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
32
32
  // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
33
33
  // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
@@ -35,7 +35,7 @@
35
35
  // "types": [], /* Specify type package names to be included without being referenced in a source file. */
36
36
  // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
37
37
  // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
38
- // "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
38
+ "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
39
39
  // "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
40
40
  // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
41
41
  // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
@@ -51,11 +51,11 @@
51
51
  /* Emit */
52
52
  "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
53
53
  // "declarationMap": true, /* Create sourcemaps for d.ts files. */
54
- // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
54
+ "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
55
55
  // "sourceMap": true, /* Create source map files for emitted JavaScript files. */
56
56
  // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
57
57
  // "outFile": "./", /* 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. */
58
- "outDir": "dist/", /* Specify an output folder for all emitted files. */
58
+ // "outDir": "dist/", /* Specify an output folder for all emitted files. */
59
59
  // "removeComments": true, /* Disable emitting comments. */
60
60
  // "noEmit": true, /* Disable emitting files from a compilation. */
61
61
  // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
@@ -1,7 +1,7 @@
1
1
  import { Merge, OverrideProperties } from 'type-fest';
2
2
  import { Chat, MessageTypes } from 'whatsapp-web.js';
3
- import { Database as DatabaseGenerated, Tables } from './supabase.types';
4
- export * from './supabase.types';
3
+ import { Database as DatabaseGenerated, Tables } from './supabase.types.ts';
4
+ export * from './supabase.types.ts';
5
5
  export type Database = OverrideProperties<DatabaseGenerated, {}>;
6
6
  export type WhatsappChat = Chat & {
7
7
  groupMetadata?: any;
package/types.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Merge, OverrideProperties } from 'type-fest';
2
2
  import { Chat, MessageTypes } from 'whatsapp-web.js';
3
- import { Database as DatabaseGenerated, Tables } from './supabase.types';
4
- export * from './supabase.types';
3
+ import { Database as DatabaseGenerated, Tables } from './supabase.types.ts';
4
+ export * from './supabase.types.ts';
5
5
 
6
6
  // Override the type for a specific column in a view:
7
7
  export type Database = OverrideProperties<DatabaseGenerated, {}>;
@@ -1 +0,0 @@
1
- export {};
package/dist/types.js DELETED
@@ -1,14 +0,0 @@
1
- export * from './supabase.types';
2
- /* -------------------------------- CONSTANTS ------------------------------- */
3
- export const labelColors = [
4
- '#9333EA',
5
- '#0D9488',
6
- '#DB2777',
7
- '#2563EB',
8
- '#F97316',
9
- ];
10
- export const enumChatColors = [
11
- "#B4876E", "#A5B337", "#06CF9C", "#25D366", "#02A698",
12
- "#7D9EF1", "#007BFC", "#5E47DE", "#7F66FF", "#9333EA",
13
- "#FA6533", "#C4532D", "#DC2626", "#FF2E74", "#DB2777"
14
- ];