@aws-cdk/aws-sam
Advanced tools
Comparing version 0.13.0 to 0.26.0
@@ -1,1 +0,1 @@ | ||
export * from './serverless.generated'; | ||
export * from './sam.generated'; |
@@ -7,3 +7,3 @@ "use strict"; | ||
// AWS::Serverless CloudFormation Resources: | ||
__export(require("./serverless.generated")); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLDRDQUE0QztBQUM1Qyw0Q0FBdUMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBBV1M6OlNlcnZlcmxlc3MgQ2xvdWRGb3JtYXRpb24gUmVzb3VyY2VzOlxuZXhwb3J0ICogZnJvbSAnLi9zZXJ2ZXJsZXNzLmdlbmVyYXRlZCc7XG4iXX0= | ||
__export(require("./sam.generated")); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLDRDQUE0QztBQUM1QyxxQ0FBZ0MiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBBV1M6OlNlcnZlcmxlc3MgQ2xvdWRGb3JtYXRpb24gUmVzb3VyY2VzOlxuZXhwb3J0ICogZnJvbSAnLi9zYW0uZ2VuZXJhdGVkJztcbiJdfQ== |
{ | ||
"name": "@aws-cdk/aws-sam", | ||
"version": "0.13.0", | ||
"version": "0.26.0", | ||
"description": "The CDK Construct Library for the AWS Serverless Application Model (SAM) resources", | ||
@@ -10,2 +10,8 @@ "main": "lib/index.js", | ||
"targets": { | ||
"dotnet": { | ||
"namespace": "Amazon.CDK.AWS.SAM", | ||
"packageId": "Amazon.CDK.AWS.SAM", | ||
"signAssembly": true, | ||
"assemblyOriginatorKeyFile": "../../key.snk" | ||
}, | ||
"java": { | ||
@@ -18,8 +24,2 @@ "package": "software.amazon.awscdk.services.sam", | ||
}, | ||
"dotnet": { | ||
"namespace": "Amazon.CDK.AWS.SAM", | ||
"packageId": "Amazon.CDK.AWS.SAM", | ||
"signAssembly": true, | ||
"assemblyOriginatorKeyFile": "../../key.snk" | ||
}, | ||
"sphinx": {} | ||
@@ -32,10 +32,13 @@ } | ||
}, | ||
"homepage": "https://github.com/awslabs/aws-cdk", | ||
"scripts": { | ||
"build": "cdk-build", | ||
"watch": "cdk-watch", | ||
"integ": "cdk-integ", | ||
"lint": "cdk-lint", | ||
"package": "cdk-package", | ||
"pkglint": "pkglint -f", | ||
"test": "cdk-test", | ||
"integ": "cdk-integ", | ||
"pkglint": "pkglint -f", | ||
"package": "cdk-package" | ||
"watch": "cdk-watch", | ||
"awslint": "cdk-awslint", | ||
"cfn2ts": "cfn2ts" | ||
}, | ||
@@ -49,3 +52,3 @@ "cdk-build": { | ||
"constructs", | ||
"serverless" | ||
"aws-sam" | ||
], | ||
@@ -59,11 +62,16 @@ "author": { | ||
"devDependencies": { | ||
"@aws-cdk/assert": "^0.13.0", | ||
"cdk-build-tools": "^0.13.0", | ||
"cfn2ts": "^0.13.0", | ||
"pkglint": "^0.13.0" | ||
"@aws-cdk/assert": "^0.26.0", | ||
"cdk-build-tools": "^0.26.0", | ||
"cfn2ts": "^0.26.0", | ||
"pkglint": "^0.26.0" | ||
}, | ||
"dependencies": { | ||
"@aws-cdk/cdk": "^0.13.0" | ||
"@aws-cdk/cdk": "^0.26.0" | ||
}, | ||
"homepage": "https://github.com/awslabs/aws-cdk" | ||
} | ||
"peerDependencies": { | ||
"@aws-cdk/cdk": "^0.26.0" | ||
}, | ||
"engines": { | ||
"node": ">= 8.10.0" | ||
} | ||
} |
@@ -1,2 +0,7 @@ | ||
## The CDK Construct Library for the AWS Serverless Application Model (SAM) | ||
This module is part of the [AWS Cloud Development Kit](https://github.com/awslabs/aws-cdk) project. | ||
## AWS Serverless Application Model Construct Library | ||
```ts | ||
const sam = require('@aws-cdk/aws-sam'); | ||
``` | ||
Note: we recommended to use `@aws-cdk/aws-lambda`, `aws-cdk/aws-lambda-event-sources` and `@aws-cdk/aws-apigateway` packages to build 'serverless' applications with the CDK instead of the `AWS::Serverless` resources exposes by `@aws-cdk/aws-sam`. |
@@ -1,2 +0,5 @@ | ||
declare const _default: void; | ||
import { Test } from 'nodeunit'; | ||
declare const _default: { | ||
'construct an AWS::Serverless::Application'(test: Test): void; | ||
}; | ||
export = _default; |
"use strict"; | ||
const nodeunit_1 = require("nodeunit"); | ||
module.exports = nodeunit_1.testCase({ | ||
notTested(test) { | ||
test.ok(true, 'No tests are specified for this package.'); | ||
const assert_1 = require("@aws-cdk/assert"); | ||
const cdk = require("@aws-cdk/cdk"); | ||
const lib_1 = require("../lib"); | ||
module.exports = { | ||
'construct an AWS::Serverless::Application'(test) { | ||
const stack = new cdk.Stack(); | ||
new lib_1.CfnApplication(stack, 'App', { | ||
location: { | ||
applicationId: 'arn:aws:serverlessrepo:us-east-1:077246666028:applications/aws-serverless-twitter-event-source', | ||
semanticVersion: '2.0.0' | ||
}, | ||
parameters: { | ||
SearchText: '#serverless -filter:nativeretweets', | ||
TweetProcessorFunctionName: 'test' | ||
} | ||
}); | ||
assert_1.expect(stack).toMatch({ | ||
Transform: 'AWS::Serverless-2016-10-31', | ||
Resources: { | ||
App: { | ||
Type: 'AWS::Serverless::Application', | ||
Properties: { | ||
Location: { | ||
ApplicationId: 'arn:aws:serverlessrepo:us-east-1:077246666028:applications/aws-serverless-twitter-event-source', | ||
SemanticVersion: '2.0.0' | ||
}, | ||
Parameters: { | ||
SearchText: '#serverless -filter:nativeretweets', | ||
TweetProcessorFunctionName: 'test' | ||
} | ||
} | ||
} | ||
} | ||
}); | ||
test.done(); | ||
} | ||
}); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC5z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HJvY2Vzc29yRnVuY3Rpb25OYW1lOiAndGVzdCdcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9KTtcblxuICAgIHRlc3QuZG9uZSgpO1xuICB9XG59O1xuIl19 |
@@ -25,5 +25,20 @@ { | ||
"strictNullChecks": true, | ||
"target": "ES2018" | ||
"target": "ES2018", | ||
"composite": true | ||
}, | ||
"include": [ | ||
"**/*.ts" | ||
], | ||
"exclude": [ | ||
"node_modules" | ||
], | ||
"references": [ | ||
{ | ||
"path": "../cdk" | ||
}, | ||
{ | ||
"path": "../assert" | ||
} | ||
], | ||
"_generated_by_jsii_": "Generated by jsii - safe to delete, and ideally should be in .gitignore" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
397357
2311
0
8
2
12
2
+ Added@aws-cdk/cdk@0.26.0(transitive)
+ Added@aws-cdk/cx-api@0.26.0(transitive)
- Removed@aws-cdk/cdk@0.13.0(transitive)
- Removed@aws-cdk/cx-api@0.13.0(transitive)
Updated@aws-cdk/cdk@^0.26.0