Socket
Socket
Sign inDemoInstall

@architect/create

Package Overview
Dependencies
35
Maintainers
4
Versions
100
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.15 to 1.0.16

14

changelog.md

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

## [1.0.16] 2020-03-02
### Added
- Added support for running without an existing Architect project manifest
### Changed
- Added `cache-control` header by default
- Updated dependencies
---
## [1.0.15] 2020-02-05

@@ -7,0 +21,0 @@

13

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

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

"dependencies": {
"@architect/utils": "^1.4.7",
"chalk": "^3.0.0",
"mkdirp": "^0.5.1",
"run-parallel": "^1.1.9"
"@architect/parser": "~2.1.0",
"@architect/utils": "~1.4.7",
"chalk": "~3.0.0",
"mkdirp": "~1.0.3",
"run-parallel": "~1.1.9"
},

@@ -31,4 +32,4 @@ "devDependencies": {

"tap-spec": "^5.0.0",
"tape": "^4.13.0"
"tape": "^4.13.2"
}
}

@@ -1,2 +0,3 @@

let {readArc, updater} = require('@architect/utils')
let { updater } = require('@architect/utils')
let { readArc } = require('@architect/parser')
let parallel = require('run-parallel')

@@ -24,3 +25,3 @@ let code = require('./lambda')

module.exports = function create (params={}, callback) {
let {options={}, folder=process.cwd(), install, standalone, update} = params
let { options={}, folder=process.cwd(), install, standalone, update } = params

@@ -37,3 +38,3 @@ let promise

if (!update) update = updater('Create')
let {arc} = readArc({cwd: folder})
let { arc } = readArc({ cwd: folder })

@@ -40,0 +41,0 @@ let supported = ['node', 'deno', 'ruby', 'python', 'rb', 'py', 'js']

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

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

@@ -14,0 +14,0 @@ }`

let learn = 'learn more about HTTP functions here: https://arc.codes/primitives/http'
let deno = `import { Context, Event } from "https://deno.land/x/lambda/mod.ts";
let deno = `import { Context, APIGatewayProxyEvent } from "https://deno.land/x/lambda/mod.ts";
export async function handler(event: Event, context: Context) {
return {
statusCode: 200,
headers: {'content-type': 'text/html; charset=utf8'},
body: \`Welcome to deno \${Deno.version.deno} 🦕\`
};
}`
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} 🦕\`
};
}`

@@ -86,3 +89,6 @@ function html (lang, ext) {

return {
headers: {'content-type': 'text/html; charset=utf8'},
headers: {
'cache-control': 'no-cache, no-store, must-revalidate, max-age=0, s-maxage=0',
'content-type': 'text/html; charset=utf8'
},
body: \`${html('Node.js', 'js')}\`

@@ -95,3 +101,6 @@ }

{
headers: {'content-type': 'text/html'},
headers: {
'cache-control': 'no-cache, no-store, must-revalidate, max-age=0, s-maxage=0',
'content-type': 'text/html; charset=utf8'
},
body: %q(${html('Ruby', 'rb')})

@@ -104,3 +113,6 @@ }

return {
'headers': {'content-type': 'text/html'},
'headers': {
'cache-control': 'no-cache, no-store, must-revalidate, max-age=0, s-maxage=0',
'content-type': 'text/html; charset=utf8'
},
'body': """${html('Python', 'py')}"""

@@ -107,0 +119,0 @@ }`

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

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

@@ -14,0 +14,0 @@ }`

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

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

@@ -14,0 +14,0 @@ }`

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

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

@@ -14,0 +14,0 @@ }`

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

let deno = `import {Context, Event} from "https://deno.land/x/lambda/mod.ts"
let deno = `import {Context, APIGatewayProxyEvent} from "https://deno.land/x/lambda/mod.ts"
export async function handler(event: Event, context: Context) {
export async function handler(event: APIGatewayProxyEvent, context: Context) {
console.log(event)

@@ -14,0 +14,0 @@ return {statusCode: 200}

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc