Socket
Socket
Sign inDemoInstall

@difizen/mana-syringe

Package Overview
Dependencies
Maintainers
4
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@difizen/mana-syringe - npm Package Compare versions

Comparing version 0.1.12 to 0.1.13

5

es/contribution/contribution-protocol.d.ts

@@ -18,2 +18,7 @@ import type { Event } from '@difizen/mana-common';

export declare const Provider: Syringe.DefinedToken;
export declare class ContributionOptionConfigImpl {
recursive: false;
cache: true;
}
export declare const ContributionOptionConfig: ContributionOptionConfigImpl;
//# sourceMappingURL=contribution-protocol.d.ts.map

15

es/contribution/contribution-protocol.js

@@ -0,4 +1,17 @@

function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
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, _toPropertyKey(descriptor.key), descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
import { Syringe } from "../core";
export var Provider = Syringe.defineToken('SyringeContributionProvider', {
global: true
});
});
export var ContributionOptionConfigImpl = /*#__PURE__*/_createClass(function ContributionOptionConfigImpl() {
_classCallCheck(this, ContributionOptionConfigImpl);
_defineProperty(this, "recursive", void 0);
_defineProperty(this, "cache", void 0);
});
export var ContributionOptionConfig = new ContributionOptionConfigImpl();

2

es/contribution/contribution-provider.d.ts

@@ -5,3 +5,3 @@ import type { Disposable } from '@difizen/mana-common';

import type { Syringe } from '../core';
import type { Option, Provider } from './contribution-protocol';
import { type Option, type Provider } from './contribution-protocol';
export declare class DefaultContributionProvider<T extends Record<string, any>> implements Provider<T>, Disposable {

@@ -8,0 +8,0 @@ protected onChangedEmitter: Emitter<void>;

@@ -18,2 +18,3 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }

import { DisposableCollection } from '@difizen/mana-common';
import { ContributionOptionConfig } from "./contribution-protocol";
export var DefaultContributionProvider = /*#__PURE__*/function () {

@@ -25,4 +26,4 @@ function DefaultContributionProvider(serviceIdentifier, container, option) {

_defineProperty(this, "option", {
recursive: false,
cache: true
recursive: ContributionOptionConfig.recursive,
cache: ContributionOptionConfig.cache
});

@@ -29,0 +30,0 @@ _defineProperty(this, "services", void 0);

@@ -18,2 +18,7 @@ import type { Event } from '@difizen/mana-common';

export declare const Provider: Syringe.DefinedToken;
export declare class ContributionOptionConfigImpl {
recursive: false;
cache: true;
}
export declare const ContributionOptionConfig: ContributionOptionConfigImpl;
//# sourceMappingURL=contribution-protocol.d.ts.map

@@ -6,6 +6,19 @@ "use strict";

});
exports.Provider = void 0;
exports.Provider = exports.ContributionOptionConfigImpl = exports.ContributionOptionConfig = void 0;
var _core = require("../core");
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
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, _toPropertyKey(descriptor.key), descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
var Provider = exports.Provider = _core.Syringe.defineToken('SyringeContributionProvider', {
global: true
});
});
var ContributionOptionConfigImpl = exports.ContributionOptionConfigImpl = /*#__PURE__*/_createClass(function ContributionOptionConfigImpl() {
_classCallCheck(this, ContributionOptionConfigImpl);
_defineProperty(this, "recursive", void 0);
_defineProperty(this, "cache", void 0);
});
var ContributionOptionConfig = exports.ContributionOptionConfig = new ContributionOptionConfigImpl();

@@ -5,3 +5,3 @@ import type { Disposable } from '@difizen/mana-common';

import type { Syringe } from '../core';
import type { Option, Provider } from './contribution-protocol';
import { type Option, type Provider } from './contribution-protocol';
export declare class DefaultContributionProvider<T extends Record<string, any>> implements Provider<T>, Disposable {

@@ -8,0 +8,0 @@ protected onChangedEmitter: Emitter<void>;

@@ -8,2 +8,3 @@ "use strict";

var _manaCommon = require("@difizen/mana-common");
var _contributionProtocol = require("./contribution-protocol");
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }

@@ -30,4 +31,4 @@ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }

_defineProperty(this, "option", {
recursive: false,
cache: true
recursive: _contributionProtocol.ContributionOptionConfig.recursive,
cache: _contributionProtocol.ContributionOptionConfig.cache
});

@@ -34,0 +35,0 @@ _defineProperty(this, "services", void 0);

{
"name": "@difizen/mana-syringe",
"version": "0.1.12",
"version": "0.1.13",
"description": "",

@@ -34,3 +34,3 @@ "keywords": [

"dependencies": {
"@difizen/mana-common": "^0.1.12",
"@difizen/mana-common": "^0.1.13",
"inversify": "^5.1.1",

@@ -37,0 +37,0 @@ "reflect-metadata": "^0.1.13"

@@ -22,1 +22,8 @@ import type { Event } from '@difizen/mana-common';

});
export class ContributionOptionConfigImpl {
recursive: false;
cache: true;
}
export const ContributionOptionConfig = new ContributionOptionConfigImpl();

@@ -7,3 +7,7 @@ import type { Disposable } from '@difizen/mana-common';

import type { Option, Provider } from './contribution-protocol';
import {
ContributionOptionConfig,
type Option,
type Provider,
} from './contribution-protocol';

@@ -17,3 +21,6 @@ export class DefaultContributionProvider<T extends Record<string, any>>

}
protected option: Option = { recursive: false, cache: true };
protected option: Option = {
recursive: ContributionOptionConfig.recursive,
cache: ContributionOptionConfig.cache,
};
protected services: T[] | undefined;

@@ -20,0 +27,0 @@ protected readonly serviceIdentifier: Syringe.Token<T>;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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