@taxcore/hackjs 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,3 +4,4 @@ export interface ServerPlugin {
4
4
  readonly guid: string;
5
5
  }
6
6
  export declare const plugins: ServerPlugin[];
7
+ export declare function Plugin(): (target: ServerPlugin) => void;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.plugins = void 0;
4
+ exports.Plugin = Plugin;
4
5
  exports.plugins = [];
5
6
  function Plugin() {
6
7
  return function (target) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taxcore/hackjs",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "packageManager": "yarn@4.6.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -8,7 +8,7 @@ export interface ServerPlugin {
8
8
 
9
9
  export const plugins: ServerPlugin[] = [];
10
10
 
11
- function Plugin() {
11
+ export function Plugin() {
12
12
  return function(target: ServerPlugin){
13
13
  plugins.push(target);
14
14
  }