Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ginger.io/beyonce

Package Overview
Dependencies
Maintainers
7
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ginger.io/beyonce - npm Package Compare versions

Comparing version 0.0.15 to 0.0.16

12

dist/codegen/generateModelInterface.js

@@ -6,10 +6,10 @@ "use strict";

const imports = [];
models.forEach(m => {
models.forEach((m) => {
const generatedInterface = generateModelInterface(m);
code.push(generatedInterface.code);
generatedInterface.imports.forEach(_ => imports.push(_));
generatedInterface.imports.forEach((_) => imports.push(_));
});
return {
code,
imports
imports,
};

@@ -24,6 +24,6 @@ }

fields.push(generatedField.code);
generatedField.imports.forEach(_ => imports.push(_));
generatedField.imports.forEach((_) => imports.push(_));
});
const code = `
export interface ${model.name} extends Model {
export interface ${model.name} {
model: ModelType.${model.name}

@@ -40,3 +40,3 @@ ${fields.join("\n")}

code: `${name}: ${existingTypeName}`,
imports: [`import { ${existingTypeName} } from "${packageName}"`]
imports: [`import { ${existingTypeName} } from "${packageName}"`],
};

@@ -43,0 +43,0 @@ }

{
"name": "@ginger.io/beyonce",
"version": "0.0.15",
"version": "0.0.16",
"description": "Type-safe DynamoDB query builder for TypeScript. Designed with single-table architecture in mind.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -9,6 +9,6 @@ import { Model } from "./types"

models.forEach(m => {
models.forEach((m) => {
const generatedInterface = generateModelInterface(m)
code.push(generatedInterface.code)
generatedInterface.imports.forEach(_ => imports.push(_))
generatedInterface.imports.forEach((_) => imports.push(_))
})

@@ -18,3 +18,3 @@

code,
imports
imports,
}

@@ -32,7 +32,7 @@ }

fields.push(generatedField.code)
generatedField.imports.forEach(_ => imports.push(_))
generatedField.imports.forEach((_) => imports.push(_))
})
const code = `
export interface ${model.name} extends Model {
export interface ${model.name} {
model: ModelType.${model.name}

@@ -54,3 +54,3 @@ ${fields.join("\n")}

code: `${name}: ${existingTypeName}`,
imports: [`import { ${existingTypeName} } from "${packageName}"`]
imports: [`import { ${existingTypeName} } from "${packageName}"`],
}

@@ -57,0 +57,0 @@ } else {

import { generateModels } from "../../main/codegen/generateModels"
const authorInterface = `export interface Author extends Model {
const authorInterface = `export interface Author {
model: ModelType.Author

@@ -9,3 +9,3 @@ id: string

const bookInterface = `export interface Book extends Model {
const bookInterface = `export interface Book {
model: ModelType.Book

@@ -12,0 +12,0 @@ id: string

@@ -6,3 +6,2 @@ import { JayZ } from "@ginger.io/jay-z"

import { key } from "../../main/dynamo/Key"
import { Model } from "../../main/dynamo/Model"
import { JayZConfig } from "../../main/dynamo/JayZConfig"

@@ -22,3 +21,3 @@

export interface Musician extends Model {
export interface Musician {
readonly model: ModelType.MUSICIAN

@@ -29,3 +28,3 @@ readonly id: string

export interface Song extends Model {
export interface Song {
readonly model: ModelType.SONG

@@ -32,0 +31,0 @@ readonly musicianId: string

Sorry, the diff of this file is not supported yet

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