Socket
Socket
Sign inDemoInstall

@architect/create

Package Overview
Dependencies
Maintainers
4
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@architect/create - npm Package Compare versions

Comparing version 1.0.17 to 1.0.18

9

changelog.md

@@ -5,2 +5,11 @@ # Architect Create changelog

## [1.0.18] 2020-03-22
### Changed
- Cleaned up boilerplate code
- Updated dependencies
---
## [1.0.16 - 17] 2020-03-02

@@ -7,0 +16,0 @@

6

package.json
{
"name": "@architect/create",
"version": "1.0.17",
"version": "1.0.18",
"description": "Idempotently initialize Architect projects",

@@ -21,4 +21,4 @@ "main": "src/index.js",

"dependencies": {
"@architect/parser": "~2.1.0",
"@architect/utils": "~1.5.0",
"@architect/parser": "~2.1.1",
"@architect/utils": "~1.5.1",
"chalk": "~3.0.0",

@@ -25,0 +25,0 @@ "mkdirp": "~1.0.3",

@@ -16,3 +16,3 @@ let {join} = require('path')

@aws
${runtime ? '' : '# '}@aws
${runtime}# profile default

@@ -19,0 +19,0 @@ # region us-west-1

@@ -9,6 +9,6 @@ let learn = 'learn more about event functions here: https://arc.codes/primitives/events'

let deno = `import {Context, APIGatewayProxyEvent} from "https://deno.land/x/lambda/mod.ts"
export async function handler( event: APIGatewayProxyEvent, context: Context) {
return {message: \`Welcome to deno \${Deno.version.deno} 🦕\`}
let deno = `// ${learn}
export async function handler (event: object) {
console.log(JSON.stringify(event, null, 2))
return
}`

@@ -25,5 +25,4 @@

print(event)
print(context)
return True`
module.exports = {nodejs, deno, ruby, python}
let learn = 'learn more about HTTP functions here: https://arc.codes/primitives/http'
let deno = `import { Context, APIGatewayProxyEvent } from "https://deno.land/x/lambda/mod.ts";
export async function handler(event: APIGatewayProxyEvent, context: Context) {
return {
statusCode: 200,
headers: {
'cache-control': 'no-cache, no-store, must-revalidate, max-age=0, s-maxage=0',
'content-type': 'text/html; charset=utf8'
},
body: \`Welcome to deno \${Deno.version.deno} 🦕\`
};
}`
function html (lang, ext) {

@@ -86,2 +73,14 @@ return `

let deno = `// ${learn}
export async function handler (event: object) {
return {
statusCode: 200,
headers: {
'cache-control': 'no-cache, no-store, must-revalidate, max-age=0, s-maxage=0',
'content-type': 'text/html; charset=utf8'
},
body: \`${html('deno', 'ts')}\`
};
}`
let nodejs = `// ${learn}

@@ -88,0 +87,0 @@ exports.handler = async function http (req) {

@@ -9,6 +9,6 @@ let learn = 'learn more about queue functions here: https://arc.codes/primitives/queues'

let deno = `import { Context, APIGatewayProxyEvent } from "https://deno.land/x/lambda/mod.ts"
export async function handler(event: APIGatewayProxyEvent, context: Context) {
return {message: \`Welcome to deno \${Deno.version.deno} 🦕\`}
let deno = `// ${learn}
export async function handler (event: object) {
console.log(JSON.stringify(event, null, 2))
return
}`

@@ -25,5 +25,4 @@

print(event)
print(context)
return True`
module.exports = {nodejs, deno, ruby, python}

@@ -9,6 +9,6 @@ let learn = 'learn more about scheduled functions here: https://arc.codes/primitives/scheduled'

let deno = `import { Context, APIGatewayProxyEvent } from "https://deno.land/x/lambda/mod.ts"
export async function handler(event: APIGatewayProxyEvent, context: Context) {
return {message: \`Welcome to deno \${Deno.version.deno} 🦕\`}
let deno = `// ${learn}
export async function handler (event: object) {
console.log(JSON.stringify(event, null, 2))
return
}`

@@ -25,5 +25,4 @@

print(event)
print(context)
return True`
module.exports = {nodejs, deno, ruby, python}

@@ -9,6 +9,6 @@ let learn = 'learn more about DynamoDB table stream functions here: https://arc.codes/primitives/tables'

let deno = `import {Context, APIGatewayProxyEvent} from "https://deno.land/x/lambda/mod.ts"
export async function handler(event: APIGatewayProxyEvent, context: Context) {
return {message: \`Welcome to deno \${Deno.version.deno} 🦕\`}
let deno = `// ${learn}
export async function handler (event: object) {
console.log(JSON.stringify(event, null, 2))
return
}`

@@ -25,5 +25,4 @@

print(event)
print(context)
return True`
module.exports = {nodejs, deno, ruby, python}

@@ -9,6 +9,5 @@ let learn = 'learn more about WebSocket functions here: https://arc.codes/primitives/ws'

let deno = `import {Context, APIGatewayProxyEvent} from "https://deno.land/x/lambda/mod.ts"
export async function handler(event: APIGatewayProxyEvent, context: Context) {
console.log(event)
let deno = `// ${learn}
export async function handler (event: object) {
console.log(JSON.stringify(event, null, 2))
return {statusCode: 200}

@@ -26,5 +25,4 @@ }`

print(event)
print(context)
return {statusCode: 200}`
module.exports = {nodejs, deno, ruby, python}
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