New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@jalik/observer

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jalik/observer - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

.travis.yml

3

CHANGELOG.md
# Changelog
## v1.1.3
- Updates dependencies
## v1.1.2

@@ -4,0 +7,0 @@ - Updates dependencies

18

dist/observer.js
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
exports["default"] = void 0;
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
/*

@@ -41,4 +41,3 @@ * The MIT License (MIT)

function Observer(context) {
_classCallCheck(this, Observer);
(0, _classCallCheck2["default"])(this, Observer);
this.context = context;

@@ -54,3 +53,3 @@ this.events = {};

_createClass(Observer, [{
(0, _createClass2["default"])(Observer, [{
key: "attach",

@@ -133,3 +132,2 @@ value: function attach(event, listener) {

}]);
return Observer;

@@ -139,2 +137,2 @@ }();

var _default = Observer;
exports.default = _default;
exports["default"] = _default;
{
"name": "@jalik/observer",
"version": "1.1.2",
"version": "1.1.3",
"description": "A library to observe events and trigger callbacks.",

@@ -34,19 +34,18 @@ "license": "MIT",

"devDependencies": {
"@babel/core": "^7.3.4",
"@babel/preset-env": "^7.3.4",
"acorn": "^6.1.0",
"ajv": "^6.9.2",
"babel-core": "^7.0.0-bridge.0",
"del": "^3.0.0",
"eslint": "^5.14.1",
"eslint-config-airbnb": "^17.1.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-jest": "^22.3.0",
"eslint-plugin-jsx-a11y": "^6.2.1",
"eslint-plugin-react": "^7.12.4",
"gulp": "^4.0.0",
"@babel/core": "^7.5.5",
"acorn": "^6.2.1",
"ajv": "^6.10.2",
"babel-preset-airbnb": "^4.0.1",
"del": "^5.0.0",
"eslint": "^5.16.0",
"eslint-config-airbnb": "^17.1.1",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jest": "^22.13.6",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-react": "^7.14.3",
"gulp": "^4.0.2",
"gulp-babel": "^8.0.0",
"gulp-eslint": "^5.0.0",
"jest": "^24.1.0"
"jest": "^24.8.0"
}
}
# @jalik/observer
![GitHub package.json version](https://img.shields.io/github/package-json/v/jalik/js-observer.svg)
[![Build Status](https://travis-ci.com/jalik/js-observer.svg?branch=master)](https://travis-ci.com/jalik/js-observer)
![GitHub](https://img.shields.io/github/license/jalik/js-observer.svg)
![GitHub last commit](https://img.shields.io/github/last-commit/jalik/js-observer.svg)
[![GitHub issues](https://img.shields.io/github/issues/jalik/js-observer.svg)](https://github.com/jalik/js-observer/issues)
![npm](https://img.shields.io/npm/dt/@jalik/observer.svg)

@@ -10,4 +16,2 @@ The classic observer design pattern.

**This library has been unit tested.**
## Attaching an observer and notify it

@@ -14,0 +18,0 @@

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