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

@aws-amplify/plugin-types

Package Overview
Dependencies
Maintainers
10
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-amplify/plugin-types - npm Package Compare versions

Comparing version 0.5.0 to 0.6.0

README.md

9

lib/construct_container.d.ts
import { Construct } from 'constructs';
import { ConstructFactory } from './construct_factory.js';
import { BackendSecretResolver } from './backend_secret_resolver.js';
import { ResourceProvider } from './resource_provider.js';
/**
* Initializes a CDK Construct in a given scope
*/
export type ConstructContainerEntryGenerator = {
export type ConstructContainerEntryGenerator<T extends object = object> = {
/**

@@ -16,3 +17,3 @@ * A group name for this generator.

*/
generateContainerEntry: (scope: Construct, backendSecretResolver: BackendSecretResolver) => Construct;
generateContainerEntry: (scope: Construct, backendSecretResolver: BackendSecretResolver) => ResourceProvider<T>;
};

@@ -23,6 +24,6 @@ /**

export type ConstructContainer = {
getOrCompute: (generator: ConstructContainerEntryGenerator) => Construct;
getOrCompute: (generator: ConstructContainerEntryGenerator) => ResourceProvider;
registerConstructFactory: (token: string, provider: ConstructFactory) => void;
getConstructFactory: <T>(token: string) => ConstructFactory<T> | undefined;
getConstructFactory: <T extends ResourceProvider>(token: string) => ConstructFactory<T> | undefined;
};
//# sourceMappingURL=construct_container.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RydWN0X2NvbnRhaW5lci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9jb25zdHJ1Y3RfY29udGFpbmVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb25zdHJ1Y3QgfSBmcm9tICdjb25zdHJ1Y3RzJztcbmltcG9ydCB7IENvbnN0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dG8gcGxhY2UgdGhlIGdlbmVyYXRlZCBjb25zdHJ1Y3QgaW5cbiAgICovXG4gIHJlc291cmNlR3JvdXBOYW1lOiBzdHJpbmc7XG5cbiAgLyoqXG4gICAqIENyZWF0ZSBhIG5ldyBpbnN0YW5jZSBvZiBhIENESyBjb25zdHJ1Y3QgaW4gdGhlIHByb3ZpZGVkIHNjb3BlLlxuICAgKi9cbiAgZ2VuZXJhdGVDb250YWluZXJFbnRyeTogKFxuICAgIHNjb3BlOiBDb25zdHJ1Y3QsXG4gICAgYmFja2VuZFNlY3JldFJlc29sdmVyOiBCYWNrZW5kU2VjcmV0UmVzb2x2ZXJcbiAgKSA9PiBSZXNvdXJjZVByb3ZpZGVyPFQ+O1xufTtcblxuLyoqXG4gKiBWZW5kcyBDb25zdHJ1Y3RzIGJhc2VkIG9uIGFuIGluaXRpYWxpemVyIGZ1bmN0aW9uXG4gKi9cbmV4cG9ydCB0eXBlIENvbnN0cnVjdENvbnRhaW5lciA9IHtcbiAgZ2V0T3JDb21wdXRlOiAoXG4gICAgZ2VuZXJhdG9yOiBDb25zdHJ1Y3RDb250YWluZXJFbnRyeUdlbmVyYXRvclxuICApID0+IFJlc291cmNlUHJvdmlkZXI7XG4gIHJlZ2lzdGVyQ29uc3RydWN0RmFjdG9yeTogKHRva2VuOiBzdHJpbmcsIHByb3ZpZGVyOiBDb25zdHJ1Y3RGYWN0b3J5KSA9PiB2b2lkO1xuICBnZXRDb25zdHJ1Y3RGYWN0b3J5OiA8VCBleHRlbmRzIFJlc291cmNlUHJvdmlkZXI+KFxuICAgIHRva2VuOiBzdHJpbmdcbiAgKSA9PiBDb25zdHJ1Y3RGYWN0b3J5PFQ+IHwgdW5kZWZpbmVkO1xufTtcbiJdfQ==

@@ -5,2 +5,3 @@ import { ConstructContainer } from './construct_container.js';

import { ImportPathVerifier } from './import_path_verifier.js';
import { ResourceProvider } from './resource_provider.js';
export type ConstructFactoryGetInstanceProps = {

@@ -14,3 +15,3 @@ constructContainer: ConstructContainer;

*/
export type ConstructFactory<T = unknown> = {
export type ConstructFactory<T extends ResourceProvider = ResourceProvider> = {
/**

@@ -17,0 +18,0 @@ * A construct factory can register that the return value implements additional interfaces

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RydWN0X2ZhY3RvcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvY29uc3RydWN0X2ZhY3RvcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbnN0cnVjdENvbnRhaW5lciB9IGZyb20gJy4vY29uc3RydWN0X2NvbnRhaW5lci5qcyc7XG5pbXBvcnQgeyBCYWNrZW5kT3V0cHV0U3RvcmFnZVN0cmF0ZWd5IH0gZnJvbSAnLi9vdXRwdXRfc3RvcmFnZV9zdHJhdGVneS5qcyc7XG5pbXBvcnQgeyBCYWNrZW5kT3V0cHV0RW50cnkgfSBmcm9tICcuL2JhY2tlbmRfb3V0cHV0LmpzJztcbmltcG9ydCB7IEltcG9ydFBhdGhWZXJpZmllciB9IGZyb20gJy4vaW1wb3J0X3BhdGhfdmVyaWZpZXIuanMnO1xuXG5leHBvcnQgdHlwZSBDb25zdHJ1Y3RGYWN0b3J5R2V0SW5zdGFuY2VQcm9wcyA9IHtcbiAgY29uc3RydWN0Q29udGFpbmVyOiBDb25zdHJ1Y3RDb250YWluZXI7XG4gIG91dHB1dFN0b3JhZ2VTdHJhdGVneTogQmFja2VuZE91dHB1dFN0b3JhZ2VTdHJhdGVneTxCYWNrZW5kT3V0cHV0RW50cnk+O1xuICBpbXBvcnRQYXRoVmVyaWZpZXI/OiBJbXBvcnRQYXRoVmVyaWZpZXI7XG59O1xuXG4vKipcbiAqIEZ1bmN0aW9uYWwgaW50ZXJmYWNlIGZvciBjb25zdHJ1Y3QgZmFjdG9yaWVzL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m92aWRlcz86IHN0cmluZztcbiAgZ2V0SW5zdGFuY2U6IChwcm9wczogQ29uc3RydWN0RmFjdG9yeUdldEluc3RhbmNlUHJvcHMpID0+IFQ7XG59O1xuIl19
/**
* Provides reference to underlying CDK resources.
*
* Note: we have to use object as the generic constraint rather than Record<string, unknown> so that interfaces will also satisfy the constraint
* See: https://stackoverflow.com/questions/63617344/how-to-satisfy-the-constraint-of-recordstring-unknown-with-interface
*/
export type ResourceProvider<T> = {
export type ResourceProvider<T extends object = object> = {
resources: T;
};
//# sourceMappingURL=resource_provider.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzb3VyY2VfcHJvdmlkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvcmVzb3VyY2VfcHJvdmlkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogUHJvdmlkZXMgcmVmZXJlbmNlIHRvIHVuZGVybHlpbmcgQ0RLIHJlc291cmNlcy5cbiAqL1xuZXhwb3J0IHR5cGUgUmVzb3VyY2VQcm92aWRlcjxUPiA9IHtcbiAgcmVzb3VyY2VzOiBUO1xufTtcbiJdfQ==
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzb3VyY2VfcHJvdmlkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvcmVzb3VyY2VfcHJvdmlkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogUHJvdmlkZXMgcmVmZXJlbmNlIHRvIHVuZGVybHlpbmcgQ0RLIHJlc291cmNlcy5cbiAqXG4gKiBOb3RlOiB3ZSBoYXZlIHRvIHVzZSBvYmplY3QgYXMgdGhlIGdlbmVyaWMgY29uc3RyYWludCByYXRoZXIgdGhhbiBSZWNvcmQ8c3RyaW5nLCB1bmtub3duPiBzbyB0aGF0IGludGVyZmFjZXMgd2lsbCBhbHNvIHNhdGlzZnkgdGhlIGNvbnN0cmFpbnRcbiAqIFNlZTogaHR0cHM6Ly9zdGFja292ZXJmbG93LmNvbS9xdWVzdGlvbnMvNjM2MTczNDQvaG93LXRvLXNhdGlzZnktdGhlLWNvbnN0cmFpbnQtb2YtcmVjb3Jkc3RyaW5nLXVua25vd24td2l0aC1pbnRlcmZhY2VcbiAqL1xuZXhwb3J0IHR5cGUgUmVzb3VyY2VQcm92aWRlcjxUIGV4dGVuZHMgb2JqZWN0ID0gb2JqZWN0PiA9IHtcbiAgcmVzb3VyY2VzOiBUO1xufTtcbiJdfQ==
{
"name": "@aws-amplify/plugin-types",
"version": "0.5.0",
"version": "0.6.0",
"types": "lib/index.d.ts",

@@ -5,0 +5,0 @@ "type": "commonjs",

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