@di-framework/cloudfoundry 5.3.6 → 6.0.1

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.
@@ -1,4 +1,4 @@
1
- import type { CloudFoundryApplicationInfo } from './types.js';
1
+ import type { CloudFoundryApplicationInfo } from './types';
2
2
  /**
3
3
  * Parses VCAP_APPLICATION JSON string, object payload, or process environment
4
4
  * into a strongly typed CloudFoundryApplicationInfo model.
@@ -1,4 +1,4 @@
1
- import { CloudFoundryDetector } from './detector.js';
1
+ import { CloudFoundryDetector } from './detector';
2
2
  /**
3
3
  * Parses VCAP_APPLICATION JSON string, object payload, or process environment
4
4
  * into a strongly typed CloudFoundryApplicationInfo model.
@@ -1,5 +1,5 @@
1
- import { CloudFoundryEnvironment } from './environment.js';
2
- import type { EnableCloudFoundryConnectorsOptions } from './types.js';
1
+ import { CloudFoundryEnvironment } from './environment';
2
+ import type { EnableCloudFoundryConnectorsOptions } from './types';
3
3
  export declare const CF_ENVIRONMENT_TOKEN = "cf:environment";
4
4
  export declare const CF_APPLICATION_TOKEN = "cf:application";
5
5
  export declare const CF_RELATIONAL_TOKEN = "cf:relational";
package/dist/bindings.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { useContainer } from '@di-framework/core/container';
2
- import { CloudFoundryEnvironment } from './environment.js';
2
+ import { CloudFoundryEnvironment } from './environment';
3
3
  export const CF_ENVIRONMENT_TOKEN = 'cf:environment';
4
4
  export const CF_APPLICATION_TOKEN = 'cf:application';
5
5
  export const CF_RELATIONAL_TOKEN = 'cf:relational';
@@ -1,5 +1,5 @@
1
- import type { CloudFoundryServiceInfoCreator } from '../spi/creator.js';
2
- import type { AmqpServiceInfo, RawVcapServiceData } from '../types.js';
1
+ import type { CloudFoundryServiceInfoCreator } from '../spi/creator';
2
+ import type { AmqpServiceInfo, RawVcapServiceData } from '../types';
3
3
  export declare class AmqpServiceInfoCreator implements CloudFoundryServiceInfoCreator<AmqpServiceInfo> {
4
4
  accept(serviceData: RawVcapServiceData): boolean;
5
5
  createServiceInfo(serviceData: RawVcapServiceData): AmqpServiceInfo;
@@ -1,5 +1,5 @@
1
- import type { CloudFoundryServiceInfoCreator } from '../spi/creator.js';
2
- import type { BlobStorageServiceInfo, RawVcapServiceData } from '../types.js';
1
+ import type { CloudFoundryServiceInfoCreator } from '../spi/creator';
2
+ import type { BlobStorageServiceInfo, RawVcapServiceData } from '../types';
3
3
  export declare class BlobStorageServiceInfoCreator implements CloudFoundryServiceInfoCreator<BlobStorageServiceInfo> {
4
4
  accept(serviceData: RawVcapServiceData): boolean;
5
5
  createServiceInfo(serviceData: RawVcapServiceData): BlobStorageServiceInfo;
@@ -1,5 +1,5 @@
1
- import type { CloudFoundryServiceInfoCreator } from '../spi/creator.js';
2
- import type { RawVcapServiceData, RedisServiceInfo } from '../types.js';
1
+ import type { CloudFoundryServiceInfoCreator } from '../spi/creator';
2
+ import type { RawVcapServiceData, RedisServiceInfo } from '../types';
3
3
  export declare class RedisServiceInfoCreator implements CloudFoundryServiceInfoCreator<RedisServiceInfo> {
4
4
  accept(serviceData: RawVcapServiceData): boolean;
5
5
  createServiceInfo(serviceData: RawVcapServiceData): RedisServiceInfo;
@@ -1,5 +1,5 @@
1
- import type { CloudFoundryServiceInfoCreator } from '../spi/creator.js';
2
- import type { RawVcapServiceData, RelationalServiceInfo } from '../types.js';
1
+ import type { CloudFoundryServiceInfoCreator } from '../spi/creator';
2
+ import type { RawVcapServiceData, RelationalServiceInfo } from '../types';
3
3
  export declare class RelationalServiceInfoCreator implements CloudFoundryServiceInfoCreator<RelationalServiceInfo> {
4
4
  accept(serviceData: RawVcapServiceData): boolean;
5
5
  createServiceInfo(serviceData: RawVcapServiceData): RelationalServiceInfo;
@@ -1,5 +1,5 @@
1
- import type { CloudFoundryServiceInfoCreator } from '../spi/creator.js';
2
- import type { RawVcapServiceData, UserProvidedServiceInfo } from '../types.js';
1
+ import type { CloudFoundryServiceInfoCreator } from '../spi/creator';
2
+ import type { RawVcapServiceData, UserProvidedServiceInfo } from '../types';
3
3
  export declare class UserProvidedServiceInfoCreator implements CloudFoundryServiceInfoCreator<UserProvidedServiceInfo> {
4
4
  accept(serviceData: RawVcapServiceData): boolean;
5
5
  createServiceInfo(serviceData: RawVcapServiceData): UserProvidedServiceInfo;
@@ -1,4 +1,4 @@
1
- import type { CloudFoundryServiceOptions, EnableCloudFoundryConnectorsOptions, ServiceFilter } from './types.js';
1
+ import type { CloudFoundryServiceOptions, EnableCloudFoundryConnectorsOptions, ServiceFilter } from './types';
2
2
  /**
3
3
  * Parameter or Property decorator that injects a bound Cloud Foundry service.
4
4
  *
@@ -1,6 +1,6 @@
1
1
  import { defineMetadata, getOwnMetadata, useContainer } from '@di-framework/core/container';
2
- import { bindCloudFoundryConnectors, CF_APPLICATION_TOKEN } from './bindings.js';
3
- import { getDefaultEnvironment } from './environment.js';
2
+ import { bindCloudFoundryConnectors, CF_APPLICATION_TOKEN } from './bindings';
3
+ import { getDefaultEnvironment } from './environment';
4
4
  const INJECT_METADATA_KEY = 'di:inject';
5
5
  /**
6
6
  * Parameter or Property decorator that injects a bound Cloud Foundry service.
@@ -1,5 +1,5 @@
1
- import { type ServiceInfoCreatorRegistry } from './spi/registry.js';
2
- import type { AmqpServiceInfo, BlobStorageServiceInfo, CloudFoundryApplicationInfo, CloudFoundryServiceInfo, LocalFallbackOptions, RedisServiceInfo, RelationalServiceInfo, ServiceFilter, UserProvidedServiceInfo } from './types.js';
1
+ import { type ServiceInfoCreatorRegistry } from './spi/registry';
2
+ import type { AmqpServiceInfo, BlobStorageServiceInfo, CloudFoundryApplicationInfo, CloudFoundryServiceInfo, LocalFallbackOptions, RedisServiceInfo, RelationalServiceInfo, ServiceFilter, UserProvidedServiceInfo } from './types';
3
3
  export interface CloudFoundryEnvironmentOptions {
4
4
  /** Custom environment dictionary (defaults to process.env) */
5
5
  env?: Record<string, string | undefined>;
@@ -1,6 +1,6 @@
1
- import { parseVcapApplication } from './application-info.js';
2
- import { CloudFoundryDetector } from './detector.js';
3
- import { getDefaultRegistry, parseVcapServices, } from './spi/registry.js';
1
+ import { parseVcapApplication } from './application-info';
2
+ import { CloudFoundryDetector } from './detector';
3
+ import { getDefaultRegistry, parseVcapServices, } from './spi/registry';
4
4
  export class CloudFoundryEnvironment {
5
5
  env;
6
6
  registry;
package/dist/index.d.ts CHANGED
@@ -1,13 +1,13 @@
1
- export { parseVcapApplication } from './application-info.js';
2
- export { bindCloudFoundryConnectors, CF_AMQP_TOKEN, CF_APPLICATION_TOKEN, CF_BLOB_TOKEN, CF_ENVIRONMENT_TOKEN, CF_REDIS_TOKEN, CF_RELATIONAL_TOKEN, } from './bindings.js';
3
- export { AmqpServiceInfoCreator } from './creators/amqp.js';
4
- export { BlobStorageServiceInfoCreator } from './creators/blob-storage.js';
5
- export { RedisServiceInfoCreator } from './creators/redis.js';
6
- export { RelationalServiceInfoCreator } from './creators/relational.js';
7
- export { UserProvidedServiceInfoCreator } from './creators/user-provided.js';
8
- export { CloudFoundryService, EnableCloudFoundryConnectors, VcapApplication, } from './decorators.js';
9
- export { CloudFoundryDetector, isCloudFoundry, } from './detector.js';
10
- export { CloudFoundryEnvironment, type CloudFoundryEnvironmentOptions, getDefaultEnvironment, resetDefaultEnvironment, } from './environment.js';
11
- export type { CloudFoundryServiceInfoCreator } from './spi/creator.js';
12
- export { getDefaultRegistry, parseVcapServices, ServiceInfoCreatorRegistry, } from './spi/registry.js';
13
- export type { AmqpServiceInfo, BlobStorageServiceInfo, CloudFoundryApplicationInfo, CloudFoundryServiceInfo, CloudFoundryServiceOptions, EnableCloudFoundryConnectorsOptions, LocalFallbackOptions, RawVcapServiceData, RedisServiceInfo, RelationalDialect, RelationalServiceInfo, ServiceFilter, ServicePredicate, UserProvidedServiceInfo, } from './types.js';
1
+ export { parseVcapApplication } from './application-info';
2
+ export { bindCloudFoundryConnectors, CF_AMQP_TOKEN, CF_APPLICATION_TOKEN, CF_BLOB_TOKEN, CF_ENVIRONMENT_TOKEN, CF_REDIS_TOKEN, CF_RELATIONAL_TOKEN, } from './bindings';
3
+ export { AmqpServiceInfoCreator } from './creators/amqp';
4
+ export { BlobStorageServiceInfoCreator } from './creators/blob-storage';
5
+ export { RedisServiceInfoCreator } from './creators/redis';
6
+ export { RelationalServiceInfoCreator } from './creators/relational';
7
+ export { UserProvidedServiceInfoCreator } from './creators/user-provided';
8
+ export { CloudFoundryService, EnableCloudFoundryConnectors, VcapApplication, } from './decorators';
9
+ export { CloudFoundryDetector, isCloudFoundry, } from './detector';
10
+ export { CloudFoundryEnvironment, type CloudFoundryEnvironmentOptions, getDefaultEnvironment, resetDefaultEnvironment, } from './environment';
11
+ export type { CloudFoundryServiceInfoCreator } from './spi/creator';
12
+ export { getDefaultRegistry, parseVcapServices, ServiceInfoCreatorRegistry, } from './spi/registry';
13
+ export type { AmqpServiceInfo, BlobStorageServiceInfo, CloudFoundryApplicationInfo, CloudFoundryServiceInfo, CloudFoundryServiceOptions, EnableCloudFoundryConnectorsOptions, LocalFallbackOptions, RawVcapServiceData, RedisServiceInfo, RelationalDialect, RelationalServiceInfo, ServiceFilter, ServicePredicate, UserProvidedServiceInfo, } from './types';
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
- export { parseVcapApplication } from './application-info.js';
2
- export { bindCloudFoundryConnectors, CF_AMQP_TOKEN, CF_APPLICATION_TOKEN, CF_BLOB_TOKEN, CF_ENVIRONMENT_TOKEN, CF_REDIS_TOKEN, CF_RELATIONAL_TOKEN, } from './bindings.js';
3
- export { AmqpServiceInfoCreator } from './creators/amqp.js';
4
- export { BlobStorageServiceInfoCreator } from './creators/blob-storage.js';
5
- export { RedisServiceInfoCreator } from './creators/redis.js';
6
- export { RelationalServiceInfoCreator } from './creators/relational.js';
7
- export { UserProvidedServiceInfoCreator } from './creators/user-provided.js';
8
- export { CloudFoundryService, EnableCloudFoundryConnectors, VcapApplication, } from './decorators.js';
9
- export { CloudFoundryDetector, isCloudFoundry, } from './detector.js';
10
- export { CloudFoundryEnvironment, getDefaultEnvironment, resetDefaultEnvironment, } from './environment.js';
11
- export { getDefaultRegistry, parseVcapServices, ServiceInfoCreatorRegistry, } from './spi/registry.js';
1
+ export { parseVcapApplication } from './application-info';
2
+ export { bindCloudFoundryConnectors, CF_AMQP_TOKEN, CF_APPLICATION_TOKEN, CF_BLOB_TOKEN, CF_ENVIRONMENT_TOKEN, CF_REDIS_TOKEN, CF_RELATIONAL_TOKEN, } from './bindings';
3
+ export { AmqpServiceInfoCreator } from './creators/amqp';
4
+ export { BlobStorageServiceInfoCreator } from './creators/blob-storage';
5
+ export { RedisServiceInfoCreator } from './creators/redis';
6
+ export { RelationalServiceInfoCreator } from './creators/relational';
7
+ export { UserProvidedServiceInfoCreator } from './creators/user-provided';
8
+ export { CloudFoundryService, EnableCloudFoundryConnectors, VcapApplication, } from './decorators';
9
+ export { CloudFoundryDetector, isCloudFoundry, } from './detector';
10
+ export { CloudFoundryEnvironment, getDefaultEnvironment, resetDefaultEnvironment, } from './environment';
11
+ export { getDefaultRegistry, parseVcapServices, ServiceInfoCreatorRegistry, } from './spi/registry';
@@ -1,4 +1,4 @@
1
- import type { CloudFoundryServiceInfo, RawVcapServiceData } from '../types.js';
1
+ import type { CloudFoundryServiceInfo, RawVcapServiceData } from '../types';
2
2
  /**
3
3
  * Service Provider Interface (SPI) for converting raw VCAP_SERVICES entry data
4
4
  * into a typed CloudFoundryServiceInfo model.
@@ -1,5 +1,5 @@
1
- import type { CloudFoundryServiceInfo, RawVcapServiceData } from '../types.js';
2
- import type { CloudFoundryServiceInfoCreator } from './creator.js';
1
+ import type { CloudFoundryServiceInfo, RawVcapServiceData } from '../types';
2
+ import type { CloudFoundryServiceInfoCreator } from './creator';
3
3
  export declare class ServiceInfoCreatorRegistry {
4
4
  private creators;
5
5
  constructor(registerDefaults?: boolean);
@@ -1,9 +1,9 @@
1
- import { AmqpServiceInfoCreator } from '../creators/amqp.js';
2
- import { BlobStorageServiceInfoCreator } from '../creators/blob-storage.js';
3
- import { RedisServiceInfoCreator } from '../creators/redis.js';
4
- import { RelationalServiceInfoCreator } from '../creators/relational.js';
5
- import { UserProvidedServiceInfoCreator } from '../creators/user-provided.js';
6
- import { CloudFoundryDetector } from '../detector.js';
1
+ import { AmqpServiceInfoCreator } from '../creators/amqp';
2
+ import { BlobStorageServiceInfoCreator } from '../creators/blob-storage';
3
+ import { RedisServiceInfoCreator } from '../creators/redis';
4
+ import { RelationalServiceInfoCreator } from '../creators/relational';
5
+ import { UserProvidedServiceInfoCreator } from '../creators/user-provided';
6
+ import { CloudFoundryDetector } from '../detector';
7
7
  export class ServiceInfoCreatorRegistry {
8
8
  creators = [];
9
9
  constructor(registerDefaults = true) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@di-framework/cloudfoundry",
3
- "version": "5.3.6",
3
+ "version": "6.0.1",
4
4
  "description": "Cloud Foundry connector for VCAP_SERVICES discovery, application metadata, and automated DI binding.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -10,13 +10,13 @@
10
10
  "author": "@di-framework Contributors",
11
11
  "repository": {
12
12
  "type": "git",
13
- "url": "https://github.com/di-framework/di-framework",
14
- "directory": "packages/di-framework-cloudfoundry"
13
+ "url": "https://github.com/di-framework/platform",
14
+ "directory": "adapters/cloudfoundry"
15
15
  },
16
16
  "bugs": {
17
- "url": "https://github.com/di-framework/di-framework/issues"
17
+ "url": "https://github.com/di-framework/platform/issues"
18
18
  },
19
- "homepage": "https://github.com/di-framework/di-framework#readme",
19
+ "homepage": "https://github.com/di-framework/platform",
20
20
  "keywords": [
21
21
  "cloudfoundry",
22
22
  "vcap",
@@ -47,5 +47,9 @@
47
47
  "files": [
48
48
  "dist",
49
49
  "README.md"
50
- ]
50
+ ],
51
+ "devDependencies": {
52
+ "@di-framework/core": "^5",
53
+ "@types/bun": "latest"
54
+ }
51
55
  }