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

@atlas.js/hook

Package Overview
Dependencies
Maintainers
2
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atlas.js/hook - npm Package Compare versions

Comparing version 2.1.0-alpha.0 to 2.1.0-alpha.1

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [2.1.0-alpha.1](https://github.com/strvcom/atlas.js/compare/@atlas.js/hook@2.1.0-alpha.0...@atlas.js/hook@2.1.0-alpha.1) (2019-01-28)
### Bug Fixes
* remove `declare module` wrappers from all d.ts files 🔥 ([c0e7cd5](https://github.com/strvcom/atlas.js/commit/c0e7cd5)), closes [#69](https://github.com/strvcom/atlas.js/issues/69)
<a name="2.0.1"></a>

@@ -8,0 +19,0 @@ ## [2.0.1](https://github.com/strvcom/atlas.js/compare/@atlas.js/hook@2.0.0...@atlas.js/hook@2.0.1) (2018-07-12)

6

package.json
{
"name": "@atlas.js/hook",
"description": "The base Hook class all hooks should inherit from for @atlas.js",
"version": "2.1.0-alpha.0",
"version": "2.1.0-alpha.1",
"author": "Robert Rossmann <robert.rossmann@strv.com>",

@@ -9,3 +9,3 @@ "bugs": "https://github.com/strvcom/atlas.js/issues",

"dependencies": {
"@atlas.js/component": "^2.2.0-alpha.0"
"@atlas.js/component": "^2.2.0-alpha.1"
},

@@ -27,3 +27,3 @@ "engines": {

},
"gitHead": "8b6af27b5ca8e64ba5dffa05e92c01d804dbf6f1"
"gitHead": "39c0427aa76e1003d5f4acf19cee927925ca0ad3"
}

@@ -1,33 +0,31 @@

declare module '@atlas.js/hook' {
import Component from '@atlas.js/component'
import Component from '@atlas.js/component'
/**
* Use this class to implement the "observer" pattern within Atlas
*
* A hook is capable of receiving "events" emitted from other components as method invocations.
* If a hook observes a component "service:database", and that component emits a "didCreateRecord"
* event with the record on input, you can declare a method on your hook like this and Atlas will
* call it when the observing component emits that event:
*
* ```js
* class MyHook extends Hook {
* async didCreaterecord(record) {
* // process the record somehow
* }
* }
* ```
*
* @abstract
*/
export default abstract class Hook extends Component {
/** @private */
static type: 'hook'
/**
* Use this class to implement the "observer" pattern within Atlas
* The name of the component this hook wants to receive events from
*
* A hook is capable of receiving "events" emitted from other components as method invocations.
* If a hook observes a component "service:database", and that component emits a "didCreateRecord"
* event with the record on input, you can declare a method on your hook like this and Atlas will
* call it when the observing component emits that event:
*
* ```js
* class MyHook extends Hook {
* async didCreaterecord(record) {
* // process the record somehow
* }
* }
* ```
*
* @abstract
* If `atlas` is specified, this hook will receive events from the Atlas instance itself.
*/
export default abstract class Hook extends Component {
/** @private */
static type: 'hook'
/**
* The name of the component this hook wants to receive events from
*
* If `atlas` is specified, this hook will receive events from the Atlas instance itself.
*/
static observes: string
}
static observes: string
}

@@ -8,6 +8,4 @@ "use strict";

var _component = _interopRequireDefault(require("@atlas.js/component"));
var _component = require("@atlas.js/component");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }

@@ -23,2 +21,2 @@

exports.default = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4Lm1qcyJdLCJuYW1lcyI6WyJIb29rIiwiQ29tcG9uZW50Il0sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUE7Ozs7OztBQW9CQSxNQUFNQSxJQUFOLFNBQW1CQyxrQkFBbkIsQ0FBNkI7O2dCQUF2QkQsSSxVQUNVLE07O2dCQURWQSxJLGNBRWMsSTs7ZUFHTEEsSSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBDb21wb25lbnQgZnJvbSAnQGF0bGFzLmpzL2NvbXBvbmVudCdcblxuLyoqXG4gKiBVc2UgdGhpcyBjbGFzcyB0byBpbXBsZW1lbnQgd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vaydcbiAgc3RhdGljIG9ic2VydmVzID0gbnVsbFxufVxuXG5leHBvcnQgZGVmYXVsdCBIb29rXG4iXX0=
"use strict";
var _ = _interopRequireDefault(require(".."));
var _ = require("..");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
describe('Hook: basics and API', () => {

@@ -39,2 +37,2 @@ it('exists', () => {

});
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFwaS50ZXN0Lm1qcyJdLCJuYW1lcyI6WyJkZXNjcmliZSIsIml0IiwiZXhwZWN0IiwiSG9vayIsInRvIiwiYmUiLCJhIiwibm90IiwidGhyb3ciLCJkZWZhdWx0cyIsImFuIiwiT2JqZWN0Iiwia2V5cyIsImhhdmUiLCJsZW5ndGgiLCJ0eXBlIiwiZXF1YWwiLCJvYnNlcnZlcyIsImF0bGFzIiwibG9nIiwiaG9vayIsInByb3BlcnR5Il0sIm1hcHBpbmdzIjoiOztBQUFBOzs7O0FBRUFBLFFBQVEsQ0FBQyxzQkFBRCxFQUF5QixNQUFNO0FBQ3JDQyxFQUFBQSxFQUFFLENBQUMsUUFBRCxFQUFXLE1BQU07QUFDakJDLElBQUFBLE1BQU0sQ0FBQ0MsU0FBRCxDQUFOLENBQWFDLEVBQWIsQ0FBZ0JDLEVBQWhCLENBQW1CQyxDQUFuQixDQUFxQixVQUFyQjtBQUNELEdBRkMsQ0FBRjtBQUlBTCxFQUFBQSxFQUFFLENBQUMsb0JBQUQsRUFBdUIsTUFBTTtBQUM3QkMsSUFBQUEsTUFBTSxDQUFDLE1BQU0sSUFBSUMsU0FBSixFQUFQLENBQU4sQ0FBeUJDLEVBQXpCLENBQTRCRyxHQUE1QixDQUFnQ0MsS0FBaEM7QUFDRCxHQUZDLENBQUY7QUFJQVAsRUFBQUEsRUFBRSxDQUFDLHFEQUFELEVBQXdELE1BQU07QUFDOURDLElBQUFBLE1BQU0sQ0FBQ0MsVUFBS00sUUF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1bHQnLCAoKSA9PiB7XG4gICAgZXhwZWN0KEhvb2sub2JzZXJ2ZXMpLnRvLmVxdWFsKG51bGwpXG4gIH0pXG5cbiAgaXQoJ3NhdmVzIGF0bGFzIGFuZCBsb2cgb2JqZWN0cyBnaXZlbiBvbiBjb25zdHJ1Y3RvciB0byBpdHNlbGYnLCAoKSA9PiB7XG4gICAgY29uc3QgYXRsYXMgPSB7IGF0bGFzOiB0cnVlIH1cbiAgICBjb25zdCBsb2cgPSB7IGxvZzogdHJ1ZSB9XG4gICAgY29uc3QgaG9vayA9IG5ldyBIb29rKHtcbiAgICAgIGF0bGFzLFxuICAgICAgbG9nLFxuICAgIH0pXG5cbiAgICBleHBlY3QoaG9vaykudG8uaGF2ZS5wcm9wZXJ0eSgnYXRsYXMnLCBhdGxhcylcbiAgICBleHBlY3QoaG9vaykudG8uaGF2ZS5wcm9wZXJ0eSgnbG9nJywgbG9nKVxuICB9KVxufSlcbiJdfQ==
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