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

@amplication/code-gen-types

Package Overview
Dependencies
Maintainers
8
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amplication/code-gen-types - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

2

package.json
{
"name": "@amplication/code-gen-types",
"version": "2.0.0",
"version": "2.0.1",
"description": "This library supplies all the contracts for Amplication Code Generation. The purpose is to make the contracts available for inclusion in plugins.",

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

@@ -61,6 +61,31 @@ import { namedTypes } from "ast-types";

constructor(logger: BuildLogger);
/**
* Merge another map into this map
*
* @param anotherMap The map to merge into this map
* @returns This map
*/
merge(anotherMap: ModuleMap): Promise<ModuleMap>;
/**
* Merge many maps into this map
* @param maps The maps to merge into this map
* @returns This map
* @see merge
*/
mergeMany(maps: ModuleMap[]): Promise<void>;
/**
* Set a module in the map. If the module already exists, it will be overwritten and a log message will be printed.
* @param module The module (file) to add to the set
* @returns The module
*/
set(module: Module): Promise<void>;
/**
* @returns A module for the given path, or undefined if no module exists for the path
*/
get(path: string): Module;
/**
* Replace a module in the map. If the module does not exist, it will be added to the set.
* @param oldModule The module to replace
* @param newModule The new module to replace the old module with
*/
replace(oldModule: Module, newModule: Module): void;

@@ -67,0 +92,0 @@ /**

@@ -18,2 +18,8 @@ "use strict";

}
/**
* Merge another map into this map
*
* @param anotherMap The map to merge into this map
* @returns This map
*/
merge(anotherMap) {

@@ -45,2 +51,8 @@ var _a, e_1, _b, _c;

}
/**
* Merge many maps into this map
* @param maps The maps to merge into this map
* @returns This map
* @see merge
*/
mergeMany(maps) {

@@ -72,2 +84,7 @@ var _a, e_2, _b, _c;

}
/**
* Set a module in the map. If the module already exists, it will be overwritten and a log message will be printed.
* @param module The module (file) to add to the set
* @returns The module
*/
set(module) {

@@ -81,7 +98,15 @@ return tslib_1.__awaiter(this, void 0, void 0, function* () {

}
/**
* @returns A module for the given path, or undefined if no module exists for the path
*/
get(path) {
return this.map[path];
}
/**
* Replace a module in the map. If the module does not exist, it will be added to the set.
* @param oldModule The module to replace
* @param newModule The new module to replace the old module with
*/
replace(oldModule, newModule) {
if (newModule.path !== module.path) {
if (newModule.path !== oldModule.path) {
delete this.map[oldModule.path];

@@ -88,0 +113,0 @@ }

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