@memberjunction/component-registry-server 2.99.0

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.
@@ -0,0 +1,24 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Entry point for the MemberJunction Component Registry Server
4
+ *
5
+ * This module starts the Component Registry API Server when run directly.
6
+ * The server can be configured via the mj.config.cjs file in your project root.
7
+ *
8
+ * Configuration example in mj.config.cjs:
9
+ * ```javascript
10
+ * module.exports = {
11
+ * // ... other config ...
12
+ * componentRegistrySettings: {
13
+ * port: 3200,
14
+ * enableRegistry: true,
15
+ * registryId: 'your-registry-guid', // Optional
16
+ * requireAuth: false,
17
+ * corsOrigins: ['*']
18
+ * }
19
+ * }
20
+ * ```
21
+ */
22
+ export * from './Server.js';
23
+ export * from './config.js';
24
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA;;;;;;;;;;;;;;;;;;;GAmBG;AAKH,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,33 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Entry point for the MemberJunction Component Registry Server
4
+ *
5
+ * This module starts the Component Registry API Server when run directly.
6
+ * The server can be configured via the mj.config.cjs file in your project root.
7
+ *
8
+ * Configuration example in mj.config.cjs:
9
+ * ```javascript
10
+ * module.exports = {
11
+ * // ... other config ...
12
+ * componentRegistrySettings: {
13
+ * port: 3200,
14
+ * enableRegistry: true,
15
+ * registryId: 'your-registry-guid', // Optional
16
+ * requireAuth: false,
17
+ * corsOrigins: ['*']
18
+ * }
19
+ * }
20
+ * ```
21
+ */
22
+ import { startComponentRegistryServer } from './Server.js';
23
+ // Export all server components for library use
24
+ export * from './Server.js';
25
+ export * from './config.js';
26
+ // Start the server if this file is run directly
27
+ if (import.meta.url === `file://${process.argv[1]}`) {
28
+ startComponentRegistryServer().catch(error => {
29
+ console.error('Failed to start Component Registry Server:', error);
30
+ process.exit(1);
31
+ });
32
+ }
33
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,EAAE,4BAA4B,EAAE,MAAM,aAAa,CAAC;AAE3D,+CAA+C;AAC/C,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAE5B,gDAAgD;AAChD,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,KAAK,UAAU,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACpD,4BAA4B,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;QAC3C,OAAO,CAAC,KAAK,CAAC,4CAA4C,EAAE,KAAK,CAAC,CAAC;QACnE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;AACL,CAAC"}
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@memberjunction/component-registry-server",
3
+ "version": "2.99.0",
4
+ "description": "MemberJunction: Component Registry Server API Implementation",
5
+ "type": "module",
6
+ "bin": {
7
+ "MemberJunction": "./dist/index.js"
8
+ },
9
+ "scripts": {
10
+ "build": "tsc && node -e \"if (process.platform !== 'win32') require('fs').chmodSync('dist/index.js', 0o755)\"",
11
+ "start": "node dist/index.js"
12
+ },
13
+ "files": [
14
+ "dist"
15
+ ],
16
+ "author": "MemberJunction.com",
17
+ "license": "ISC",
18
+ "dependencies": {
19
+ "@memberjunction/core": "2.99.0",
20
+ "@memberjunction/global": "2.99.0",
21
+ "@memberjunction/core-entities": "2.99.0",
22
+ "@memberjunction/interactive-component-types": "2.99.0",
23
+ "@memberjunction/sqlserver-dataprovider": "2.99.0",
24
+ "express": "^4.18.2",
25
+ "cors": "^2.8.5",
26
+ "mssql": "^11.0.1",
27
+ "cosmiconfig": "9.0.0",
28
+ "dotenv": "^16.4.1",
29
+ "zod": "^3.23.8"
30
+ },
31
+ "devDependencies": {
32
+ "@types/node": "20.14.2",
33
+ "ts-node-dev": "^2.0.0",
34
+ "typescript": "^5.4.5"
35
+ }
36
+ }