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

@furystack/inject

Package Overview
Dependencies
Maintainers
1
Versions
151
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@furystack/inject - npm Package Compare versions

Comparing version 7.0.3 to 7.0.4

23

dist/index.js
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
tslib_1.__exportStar(require("./injectable"), exports);
tslib_1.__exportStar(require("./injector"), exports);
tslib_1.__exportStar(require("./injected"), exports);
tslib_1.__exportStar(require("./models"), exports);
__exportStar(require("./injectable"), exports);
__exportStar(require("./injector"), exports);
__exportStar(require("./injected"), exports);
__exportStar(require("./models"), exports);
//# sourceMappingURL=index.js.map
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const injectable_1 = require("./injectable");

@@ -10,3 +15,3 @@ const injector_1 = require("./injector");

};
TestClass1 = tslib_1.__decorate([
TestClass1 = __decorate([
(0, injectable_1.Injectable)()

@@ -16,3 +21,3 @@ ], TestClass1);

expect(meta).toBeDefined();
expect(meta === null || meta === void 0 ? void 0 : meta.lifetime).toBe('transient');
expect(meta?.lifetime).toBe('transient');
});

@@ -22,3 +27,3 @@ it('Should fill meta store', () => {

};
TestClass2 = tslib_1.__decorate([
TestClass2 = __decorate([
(0, injectable_1.Injectable)({ lifetime: 'scoped' })

@@ -28,5 +33,5 @@ ], TestClass2);

expect(meta).toBeDefined();
expect(meta === null || meta === void 0 ? void 0 : meta.lifetime).toBe('scoped');
expect(meta?.lifetime).toBe('scoped');
});
});
//# sourceMappingURL=injectable.spec.js.map
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const injected_1 = require("./injected");

@@ -15,9 +23,9 @@ const injector_1 = require("./injector");

}
tslib_1.__decorate([
__decorate([
(0, injected_1.Injected)(Property),
tslib_1.__metadata("design:type", Property)
__metadata("design:type", Property)
], TestClass.prototype, "property", void 0);
tslib_1.__decorate([
__decorate([
(0, injected_1.Injected)(Property),
tslib_1.__metadata("design:type", Property)
__metadata("design:type", Property)
], TestClass.prototype, "property3", void 0);

@@ -24,0 +32,0 @@ expect(injector_1.Injector.injectableFields.has(TestClass)).toBe(true);

"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const utils_1 = require("@furystack/utils");

@@ -22,7 +30,7 @@ const injectable_1 = require("./injectable");

};
tslib_1.__decorate([
__decorate([
(0, injected_1.Injected)(InstanceClass_1),
tslib_1.__metadata("design:type", InstanceClass)
__metadata("design:type", InstanceClass)
], InstanceClass.prototype, "ohgodno", void 0);
InstanceClass = InstanceClass_1 = tslib_1.__decorate([
InstanceClass = InstanceClass_1 = __decorate([
(0, injectable_1.Injectable)()

@@ -36,3 +44,3 @@ ], InstanceClass);

};
InstanceClass = tslib_1.__decorate([
InstanceClass = __decorate([
(0, injectable_1.Injectable)({ lifetime: 'scoped' })

@@ -54,3 +62,3 @@ ], InstanceClass);

};
InstanceClass = tslib_1.__decorate([
InstanceClass = __decorate([
(0, injectable_1.Injectable)({ lifetime: 'singleton' })

@@ -68,3 +76,3 @@ ], InstanceClass);

};
InstanceClass = tslib_1.__decorate([
InstanceClass = __decorate([
(0, injectable_1.Injectable)({ lifetime: 'singleton' })

@@ -79,3 +87,3 @@ ], InstanceClass);

};
Injected1 = tslib_1.__decorate([
Injected1 = __decorate([
(0, injectable_1.Injectable)()

@@ -85,3 +93,3 @@ ], Injected1);

};
Injected2 = tslib_1.__decorate([
Injected2 = __decorate([
(0, injectable_1.Injectable)()

@@ -91,11 +99,11 @@ ], Injected2);

};
tslib_1.__decorate([
__decorate([
(0, injected_1.Injected)(Injected1),
tslib_1.__metadata("design:type", Injected1)
__metadata("design:type", Injected1)
], InstanceClass.prototype, "injected1", void 0);
tslib_1.__decorate([
__decorate([
(0, injected_1.Injected)(Injected2),
tslib_1.__metadata("design:type", Injected2)
__metadata("design:type", Injected2)
], InstanceClass.prototype, "injected2", void 0);
InstanceClass = tslib_1.__decorate([
InstanceClass = __decorate([
(0, injectable_1.Injectable)()

@@ -112,3 +120,3 @@ ], InstanceClass);

};
Injected1 = tslib_1.__decorate([
Injected1 = __decorate([
(0, injectable_1.Injectable)()

@@ -118,7 +126,7 @@ ], Injected1);

};
tslib_1.__decorate([
__decorate([
(0, injected_1.Injected)(Injected1),
tslib_1.__metadata("design:type", Injected1)
__metadata("design:type", Injected1)
], Injected2.prototype, "injected1", void 0);
Injected2 = tslib_1.__decorate([
Injected2 = __decorate([
(0, injectable_1.Injectable)()

@@ -128,7 +136,7 @@ ], Injected2);

};
tslib_1.__decorate([
__decorate([
(0, injected_1.Injected)(Injected2),
tslib_1.__metadata("design:type", Injected2)
__metadata("design:type", Injected2)
], InstanceClass.prototype, "injected2", void 0);
InstanceClass = tslib_1.__decorate([
InstanceClass = __decorate([
(0, injectable_1.Injectable)()

@@ -151,3 +159,3 @@ ], InstanceClass);

};
TestDisposableThrows = tslib_1.__decorate([
TestDisposableThrows = __decorate([
(0, injectable_1.Injectable)({ lifetime: 'singleton' })

@@ -199,3 +207,3 @@ ], TestDisposableThrows);

};
Trs1 = tslib_1.__decorate([
Trs1 = __decorate([
(0, injectable_1.Injectable)({ lifetime: 'transient' })

@@ -205,7 +213,7 @@ ], Trs1);

};
tslib_1.__decorate([
__decorate([
(0, injected_1.Injected)(Trs1),
tslib_1.__metadata("design:type", Trs1)
__metadata("design:type", Trs1)
], St1.prototype, "lt", void 0);
St1 = tslib_1.__decorate([
St1 = __decorate([
(0, injectable_1.Injectable)({ lifetime: 'singleton' })

@@ -220,3 +228,3 @@ ], St1);

};
Sc1 = tslib_1.__decorate([
Sc1 = __decorate([
(0, injectable_1.Injectable)({ lifetime: 'scoped' })

@@ -226,7 +234,7 @@ ], Sc1);

};
tslib_1.__decorate([
__decorate([
(0, injected_1.Injected)(Sc1),
tslib_1.__metadata("design:type", Sc1)
__metadata("design:type", Sc1)
], St2.prototype, "sc", void 0);
St2 = tslib_1.__decorate([
St2 = __decorate([
(0, injectable_1.Injectable)({ lifetime: 'singleton' })

@@ -241,3 +249,3 @@ ], St2);

};
Tr2 = tslib_1.__decorate([
Tr2 = __decorate([
(0, injectable_1.Injectable)({ lifetime: 'transient' })

@@ -247,7 +255,7 @@ ], Tr2);

};
tslib_1.__decorate([
__decorate([
(0, injected_1.Injected)(Tr2),
tslib_1.__metadata("design:type", Tr2)
__metadata("design:type", Tr2)
], Sc2.prototype, "sc", void 0);
Sc2 = tslib_1.__decorate([
Sc2 = __decorate([
(0, injectable_1.Injectable)({ lifetime: 'scoped' })

@@ -254,0 +262,0 @@ ], Sc2);

"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
tslib_1.__exportStar(require("./constructable"), exports);
__exportStar(require("./constructable"), exports);
//# sourceMappingURL=index.js.map
{
"name": "@furystack/inject",
"version": "7.0.3",
"version": "7.0.4",
"description": "Core FuryStack package",

@@ -32,7 +32,6 @@ "main": "dist/index.js",

"dependencies": {
"@furystack/utils": "^3.0.7",
"tslib": "^2.4.0"
"@furystack/utils": "^3.0.8"
},
"devDependencies": {
"@types/jest": "^28.1.8"
"@types/jest": "^29.0.0"
},

@@ -39,0 +38,0 @@ "typings": "./types/index.d.ts",

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

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