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

@atlas.js/component

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/component - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

11

CHANGELOG.md

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

<a name="2.1.0"></a>
# [2.1.0](https://github.com/strvcom/atlas.js/compare/@atlas.js/component@2.0.0...@atlas.js/component@2.1.0) (2018-07-12)
### Features
* **atlas:** allow some components to not be exposed (internal) ([cd2c4a7](https://github.com/strvcom/atlas.js/commit/cd2c4a7)), closes [#46](https://github.com/strvcom/atlas.js/issues/46)
<a name="2.0.0"></a>

@@ -8,0 +19,0 @@ # 2.0.0 (2018-05-22)

2

package.json
{
"name": "@atlas.js/component",
"description": "The main class from which all other components inherit for @atlas.js. You should not need to use this class directly - it is used internally.",
"version": "2.0.0",
"version": "2.1.0",
"author": "Robert Rossmann <robert.rossmann@strv.com>",

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

@@ -8,7 +8,12 @@ "use strict";

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; }
class Component {
constructor(options = {}) {
this.atlas = null;
this.log = null;
this.config = {};
_defineProperty(this, "atlas", null);
_defineProperty(this, "log", null);
_defineProperty(this, "config", {});
this.atlas = options.atlas;

@@ -23,7 +28,12 @@ this.log = options.log;

Component.config = {};
Component.defaults = {};
Component.requires = [];
_defineProperty(Component, "internal", false);
_defineProperty(Component, "config", {});
_defineProperty(Component, "defaults", {});
_defineProperty(Component, "requires", []);
var _default = Component;
exports.default = _default;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4Lm1qcyJdLCJuYW1lcyI6WyJDb21wb25l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XJuYWwgPSBmYWxzZVxuICBzdGF0aWMgY29uZmlnID0ge31cblxuICAvLyBAREVQUkVDQVRFRDogVXNlIHN0YXRpYyBjb25maWcgYXMgSlNPTiBTY2hlbWFcbiAgc3RhdGljIGRlZmF1bHRzID0ge31cbiAgc3RhdGljIHJlcXVpcmVzID0gW11cblxuICBhdGxhcyA9IG51bGxcbiAgbG9nID0gbnVsbFxuICBjb25maWcgPSB7fVxuXG4gIGNvbnN0cnVjdG9yKG9wdGlvbnMgPSB7fSkge1xuICAgIHRoaXMuYXRsYXMgPSBvcHRpb25zLmF0bGFzXG4gICAgdGhpcy5sb2cgPSBvcHRpb25zLmxvZ1xuICAgIHRoaXMuY29uZmlnID0gb3B0aW9ucy5jb25maWcgfHwge31cbiAgICB0aGlzLmNvbXBvbmVudCA9IG9wdGlvbnMuY29tcG9uZW50XG4gICAgdGhpcy5kaXNwYXRjaCA9IG9wdGlvbnMuZGlzcGF0Y2hcbiAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBDb21wb25lbnRcbiJdfQ==

@@ -26,2 +26,5 @@ "use strict";

});
it('has a static internal property set to false', () => {
expect(_.default.internal).to.equal(false);
});
it('saves atlas, log and config objects given on constructor to itself', () => {

@@ -47,4 +50,3 @@ const atlas = {

it('saves the component function given on constructor to itself', () => {
const resolve = () => {};
const resolve = sinon.stub();
const component = new _.default({

@@ -56,4 +58,3 @@ component: resolve

it('saves the dispatch function given on constructor to itself', () => {
const dispatch = () => {};
const dispatch = sinon.stub();
const component = new _.default({

@@ -66,2 +67,2 @@ dispatch

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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