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

dioc

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dioc - npm Package Compare versions

Comparing version 1.0.1 to 2.0.0

dist/container-BTMLLTaW.js

4

dist/container.d.ts

@@ -8,3 +8,5 @@ import { Service } from "./service";

*/
export declare let currentContainer: Container | null;
export declare let currentContainer: {
value: Container | null;
};
/**

@@ -11,0 +13,0 @@ * The events emitted by the container

@@ -1,16 +0,16 @@

var v = Object.defineProperty;
var w = (r, t, e) => t in r ? v(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
var s = (r, t, e) => (w(r, typeof t != "symbol" ? t + "" : t, e), e), c = (r, t, e) => {
if (!t.has(r))
throw TypeError("Cannot " + e);
var h = Object.defineProperty;
var l = (t, e, r) => e in t ? h(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
var a = (t, e, r) => (l(t, typeof e != "symbol" ? e + "" : e, r), r), s = (t, e, r) => {
if (!e.has(t))
throw TypeError("Cannot " + r);
};
var a = (r, t, e) => (c(r, t, "read from private field"), e ? e.call(r) : t.get(r)), h = (r, t, e) => {
if (t.has(r))
var c = (t, e, r) => (s(t, e, "read from private field"), r ? r.call(t) : e.get(t)), u = (t, e, r) => {
if (e.has(t))
throw TypeError("Cannot add the same private member more than once");
t instanceof WeakSet ? t.add(r) : t.set(r, e);
}, u = (r, t, e, o) => (c(r, t, "write to private field"), o ? o.call(r, e) : t.set(r, e), e);
import { S as b, c as i } from "./container-NS_2qXNl.js";
import { C as $ } from "./container-NS_2qXNl.js";
e instanceof WeakSet ? e.add(t) : e.set(t, r);
}, v = (t, e, r, o) => (s(t, e, "write to private field"), o ? o.call(t, r) : e.set(t, r), r);
import { S as w, c as i } from "./container-BTMLLTaW.js";
import { C as S } from "./container-BTMLLTaW.js";
var n;
class m {
class f {
constructor() {

@@ -20,10 +20,10 @@ /**

*/
s(this, "event$", new b());
a(this, "event$", new w());
/** The container the service is bound to */
h(this, n, void 0);
if (!i)
u(this, n, void 0);
if (!i.value)
throw new Error(
`Tried to initialize service with no container (ID: ${this.constructor.ID})`
);
u(this, n, i);
v(this, n, i.value);
}

@@ -34,6 +34,6 @@ /**

*/
bind(t) {
if (!i)
bind(e) {
if (!i.value)
throw new Error("No currentContainer defined.");
return i.bind(t, this.constructor);
return i.value.bind(e, this.constructor);
}

@@ -44,3 +44,3 @@ /**

getContainer() {
return a(this, n);
return c(this, n);
}

@@ -51,4 +51,4 @@ /**

*/
emit(t) {
this.event$.next(t);
emit(e) {
this.event$.next(e);
}

@@ -64,5 +64,5 @@ /**

export {
$ as Container,
m as Service,
S as Container,
f as Service,
i as currentContainer
};

@@ -1,2 +0,2 @@

import { C as t } from "./container-NS_2qXNl.js";
import { C as t } from "./container-BTMLLTaW.js";
class r extends t {

@@ -3,0 +3,0 @@ /**

{
"name": "dioc",
"version": "1.0.1",
"version": "2.0.0",
"type": "module",

@@ -44,5 +44,5 @@ "license": "MIT",

"devDependencies": {
"typescript": "^5.3.3",
"vite": "^5.0.7",
"vitest": "^1.0.2"
"typescript": "^5.4.5",
"vite": "^5.2.10",
"vitest": "^1.5.0"
},

@@ -49,0 +49,0 @@ "dependencies": {

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