@periskope/types 0.5.0 → 0.5.2
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/mod_json_type.ps1 +15 -15
- package/package.json +4 -2
- package/supabase.types.ts +971 -971
- package/tsconfig.json +2 -2
- package/{index.d.ts → types.d.ts} +2 -2
- package/{index.ts → types.ts} +2 -2
package/mod_json_type.ps1
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
# Define the path to the TypeScript file
|
|
2
|
-
$filePath = ".\supabase.types.ts"
|
|
3
|
-
|
|
4
|
-
# Read the content of the file as a single string
|
|
5
|
-
$fileContent = Get-Content $filePath -Raw
|
|
6
|
-
|
|
7
|
-
# Define the current and new type definitions
|
|
8
|
-
$oldTypeDefinition = 'export type Json =\s*\| string\s*\| number\s*\| boolean\s*\| null\s*\| \{ \[key: string\]: Json \| undefined \}\s*\| Json\[\]'
|
|
9
|
-
$newTypeDefinition = 'export type Json = { [key: string]: any } | any'
|
|
10
|
-
|
|
11
|
-
# Replace the old type definition with the new one
|
|
12
|
-
$updatedContent = $fileContent -replace $oldTypeDefinition, $newTypeDefinition
|
|
13
|
-
|
|
14
|
-
# Write the updated content back to the file
|
|
15
|
-
$updatedContent | Set-Content $filePath
|
|
1
|
+
# Define the path to the TypeScript file
|
|
2
|
+
$filePath = ".\supabase.types.ts"
|
|
3
|
+
|
|
4
|
+
# Read the content of the file as a single string
|
|
5
|
+
$fileContent = Get-Content $filePath -Raw
|
|
6
|
+
|
|
7
|
+
# Define the current and new type definitions
|
|
8
|
+
$oldTypeDefinition = 'export type Json =\s*\| string\s*\| number\s*\| boolean\s*\| null\s*\| \{ \[key: string\]: Json \| undefined \}\s*\| Json\[\]'
|
|
9
|
+
$newTypeDefinition = 'export type Json = { [key: string]: any } | any'
|
|
10
|
+
|
|
11
|
+
# Replace the old type definition with the new one
|
|
12
|
+
$updatedContent = $fileContent -replace $oldTypeDefinition, $newTypeDefinition
|
|
13
|
+
|
|
14
|
+
# Write the updated content back to the file
|
|
15
|
+
$updatedContent | Set-Content $filePath
|
package/package.json
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@periskope/types",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"private": false,
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "types.ts",
|
|
6
|
+
"types": "types.d.ts",
|
|
6
7
|
"dependencies": {
|
|
7
8
|
"type-fest": "^4.8.3",
|
|
8
9
|
"whatsapp-web.js": "^1.23.0"
|
|
9
10
|
},
|
|
11
|
+
"type": "module",
|
|
10
12
|
"scripts": {
|
|
11
13
|
"update-package": "tsc && npm publish --access public"
|
|
12
14
|
}
|