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

autohost

Package Overview
Dependencies
Maintainers
6
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autohost - npm Package Versions

1
11

0.3.1

Diff

Changelog

Source

0.3.1

  • Update metronic version to 0.2.0
  • Bug fix - resolving external resource modules should correctly differentiate between relative paths and NPM modules
arobson
published 0.3.0 •

Changelog

Source

0.3.0

  • Use metronic for metrics
  • Use whistlepunk for logging
  • Add access logging
  • Improve metrics collection
  • Update load of relative module paths to resolve against process current working directory

prerelease 25

  • Updated two remaining areas where apiPrefix wouldn't be honored if empty
  • Add ability to override apiPrefix for a resource

prerelease 24

  • Add ability to turn off the default static path handler with static: false
  • Add ability to pass additional options to static with static: { ... }
  • Bug fix - The static path is now only created once, at the end of all other static paths

prerelease 23

Update tests and dependencies to support Node 0.10.* and 0.12.*

prerelease 22

Bug fix - autohost accidentally pegged fount version and bad initialization order caused custom fount instances to get ignored.

prerelease 21

Bug fix - correct problem with how express-session was exposed causing connect-redis to fail on init.

prerelease 20

  • Add unique identifiers to socket connections
  • Update assertions to chai
  • Re-org specs

prerelease 19

Allow for specs to reset userCountCheck so that the auth providers can be reset after adding or removing accounts and get expected behavior.

prerelease 18

  • Rewrite specifications
  • Provide test harness
  • Get coverage to 90%
  • Improve metrics keys / namespaces
  • Bring socket abstractions up to feature parity with HTTP where possible
  • Provide better error responses when trying to forward or redirect from a socket activation of an action
  • Correctly capture user for socket.io
  • Preserve header values from UPGRADE request during socket connection
  • Fix socket stream implementation (streaming to client via socket)

prerelease 17

Add .logout to to HTTP and Socket envelopes to make ending a session within a handler more straight-forward.

prerelease 16

  • Bug fix - public path was getting registered before middleware causing static resources under public to get served regardless of authorization.
  • Formatting (esformatter and then manual clean up)

prerelease 15

Bug fix - passport should not attempt to initialize when no auth provider is passed to init.

prerelease 14

  • Bug fix - auth middleware shouldn't get added to sockets twice
  • Bug fix - user middleware should always come after auth middleware
  • Simplify passport and http module interaction
  • Fix broken socket.io authentication in ws.adapter.spec
  • Add istanbul to gulpfile

prerelease 13

Bug fixes. Bug fixes everywhere:

  • Middleware wasn't correctly supporting 'eager' route definition
  • Shifted Passport creation closer to actual usage
  • Put missing demo dependencies into package file

prerelease 12

  • Do not set defaults on AutoHost's request instance
  • Make try/catch opt-in for route handles
  • Return 500 error when handle throws exception and using error handling for routes
  • Allow definition of routes before calling init
  • Support header setting on envelope reply
  • Support cookies on envelope reply

prerelease 11

  • Added opt-in feature that pre-parses path variables for access within middelware. This could be terrible.
  • Pass req.context to auth provider getUserRoles when calling from passport middleware.

prerelease 10

Pass user object to auth libs vs. user.name.

prerelease 9

Fix edge case causing passport middleware to re-authenticate users already in the session if the user object didn't have a name property.

prerelease 8

  • Remove the _autohost API/UI
  • Pass request context to checkPermissions call to enable contextual authorization

prerelease 7

  • Add support for returning multiple resources from a single resource file
  • Add support for a resource-level URL prefix

prerelease 6

Bug fix causing regular expression URLs to get incorrectly prefixed with '/' when no api or url prefix was specified.

prerelease 5

Bug fix for regular expression urls in the resource action. Add feature to prefix regular expressions with url and api prefixes.

prerelease 4

Bug fix to prevent duplication of url and/or api prefixes when using a urlStrategy (as with hyped).

prerelease 3

This prerelease changes the timing of how autohost loads resources and when they're passed on to adapters. This was done because of how hyped needs to have all resources available when constructing urls for child resources: the parent resource must be available in order to get its self url.

These changes allow hyped style period delimited path variables to be used in the resource definition while handing off a camel-case version of the variable to express (since it doesn't grok period delimited path variables).

  • Add ability to supply url generation strategy (for use with hyped)
  • Refactor resource loading so that all resources are loaded before being passed on to the adapters

prerelease 2

Eliminate "feature" that prefixes action URLs with resource name - ultimately a bit of a dead end...

prerelease 1

  • Redesign of resource format
  • Addition of extension points
  • Init now returns a promise with a list of loaded resources
  • Add ability to disable built-in options middleware
arobson
published 0.3.0-24 •

arobson
published 0.3.0-23 •

arobson
published 0.3.0-22 •

arobson
published 0.3.0-21 •

arobson
published 0.3.0-20 •

arobson
published 0.3.0-19 •

arobson
published 0.3.0-18 •

arobson
published 0.3.0-17 •

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