New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

appwrite-types-generator

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appwrite-types-generator - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

15

index.js

@@ -18,3 +18,3 @@ #!/usr/bin/env node

* @param {string} v
* @returns
* @returns {string}
*/

@@ -26,6 +26,10 @@ const toPascal = v => camelCase(v, { pascalCase: true });

* @param {"text"|"numeric"|"boolean"} type
* @returns
* @returns {"string"|"number"|"boolean"}
*/
const toType = type => ({
"text": "string",
"email": "string",
"url": "string",
"ip": "string",
"wildcard": "string",
"markdown": "string",

@@ -36,2 +40,7 @@ "numeric": "number",

/**
* Load configuration for Appwrite.
* @param {string} file
* @returns {Promise<object>}
*/
const loadConfiguration = async file => {

@@ -90,3 +99,3 @@ try {

} catch (err) {
console.error(err)
console.error(err.message)
}

@@ -93,0 +102,0 @@ });

12

package.json
{
"name": "appwrite-types-generator",
"version": "0.0.1",
"version": "0.0.2",
"description": "CLI tool to generate Typescript Definitions from your Appwrite Collections.",

@@ -14,7 +14,7 @@ "main": "index.js",

},
"author": {
"name": "Torsten Dittmann",
"email": "torsten@appwrite.io",
"url": "https://appwrite.io"
},
"author": {
"name": "Torsten Dittmann",
"email": "torsten@appwrite.io",
"url": "https://appwrite.io"
},
"license": "ISC",

@@ -21,0 +21,0 @@ "dependencies": {

@@ -38,3 +38,3 @@ <h1 align="center">Welcome to `appwrite-types-generator` 👋</h1>

## Configuration
## config.json

@@ -41,0 +41,0 @@ ```json

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc