@ldsg/application 0.1.0-alpha.4 → 0.1.0-alpha.6

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.
@@ -3,6 +3,5 @@ import { Express } from "express";
3
3
  import { ApplicationResourceSettings } from "./types";
4
4
  export declare class ApplicationResource extends Resource<ApplicationResourceSettings> {
5
5
  createApp: () => Express;
6
- start: () => void;
7
6
  }
8
7
  //# sourceMappingURL=resource.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["../src/resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAgB,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAEtD,qBAAa,mBAAoB,SAAQ,QAAQ,CAAC,2BAA2B,CAAC;IAC5E,SAAS,EAAE,MAAM,OAAO,CAQtB;IAEF,KAAK,aAQH;CACH"}
1
+ {"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["../src/resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAgB,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,2BAA2B,EAAE,MAAM,SAAS,CAAC;AAEtD,qBAAa,mBAAoB,SAAQ,QAAQ,CAAC,2BAA2B,CAAC;IAC5E,SAAS,EAAE,MAAM,OAAO,CAQtB;CACH"}
package/dist/resource.js CHANGED
@@ -16,13 +16,6 @@ class ApplicationResource extends resource_1.Resource {
16
16
  });
17
17
  return app;
18
18
  };
19
- this.start = () => {
20
- const app = this.createApp();
21
- const port = process.env.PORT || 3000;
22
- app.listen(port, () => {
23
- console.log(`app listening on port ${port}`);
24
- });
25
- };
26
19
  }
27
20
  }
28
21
  exports.ApplicationResource = ApplicationResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ldsg/application",
3
- "version": "0.1.0-alpha.4",
3
+ "version": "0.1.0-alpha.6",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -15,8 +15,8 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "express": "^4.18.2",
18
- "@ldsg/handler": "0.1.0-alpha.4",
19
- "@ldsg/resource": "0.1.0-alpha.4"
18
+ "@ldsg/handler": "0.1.0-alpha.6",
19
+ "@ldsg/resource": "0.1.0-alpha.6"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/express": "^4.17.17",