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

arnie

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arnie - npm Package Compare versions

Comparing version 0.2.14 to 0.2.15

providers.js

3

lib/adapters/serverless.js

@@ -20,2 +20,3 @@ 'use strict';

var HttpResponseProvider = require('../providers/http-response');
var OutputProvider = require('../providers/output');

@@ -25,3 +26,3 @@ module.exports = function () {

var providers = [HttpResponseProvider(), ServerlessRequestProvider()];
var providers = [HttpResponseProvider(), ServerlessRequestProvider(), OutputProvider()];

@@ -28,0 +29,0 @@ if (Array.isArray(options.providers)) {

// Just for ease of use when importing
module.exports = {
set: require('./lib/operators/set'),
when: require('./lib/operators/when')
when: require('./lib/operators/when'),
forEach: require('./lib/operators/forEach')
}
{
"name": "arnie",
"version": "0.2.14",
"version": "0.2.15",
"description": "Action hero for backends",

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

const A = require('../')
const ServerlessRequestProvider = require('../providers/serverless-request')
const HttpResponseProvider = require('../providers/http-response')
const OutputProvider = require('../providers/output')

@@ -8,3 +9,4 @@ module.exports = (options = {}) => {

HttpResponseProvider(),
ServerlessRequestProvider()
ServerlessRequestProvider(),
OutputProvider()
]

@@ -11,0 +13,0 @@

@@ -6,3 +6,3 @@ const test = require('tape')

test('Adapter: Serverless', (t) => {
t.plan(10)
t.plan(13)

@@ -27,2 +27,5 @@ const arnie = A({providers: [

(ctx) => {
t.assert(ctx.output, 'should provide output in context')
t.assert(ctx.request, 'should provide request in context')
t.assert(ctx.response, 'should provide reponse in context')
t.equal(ctx.anotherProvider, 'test', 'should pass additional providers to function-tree')

@@ -29,0 +32,0 @@ testExecutionOrder('taskA', 1)

@@ -5,5 +5,18 @@ const test = require('tape')

const operators = require('../operators')
const providers = require('../providers')
const serverless = require('../serverless')
test('Arnie', (t) => {
t.plan(4)
t.plan(12)
t.assert(serverless, 'should offer: const serverless = require(arnie/serverless)')
t.assert(operators.forEach, 'should offer: const {forEach} = require(arnie/operators)')
t.assert(operators.set, 'should offer: const {set} = require(arnie/operators)')
t.assert(operators.when, 'should offer: const {when} = require(arnie/operators)')
t.assert(operators.when, 'should offer: const {when} = require(arnie/operators)')
t.assert(providers.HttpResponseProvider, 'should offer: const {HttpResponseProvider} = require(arnie/providers)')
t.assert(providers.Output, 'should offer: const {Output} = require(arnie/providers)')
t.assert(providers.ServerlessRequestProvider, 'should offer: const {ServerlessRequestProvider} = require(arnie/providers)')
const inititalData = {foo: 'bar'}

@@ -10,0 +23,0 @@ const mutation = {foo: 'mutated'}

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