@navios/adapter-xml 0.8.0 → 0.9.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.
- package/CHANGELOG.md +7 -0
- package/README.md +3 -13
- package/bunPlugin.cache +1 -1
- package/dist/src/adapters/xml-stream-adapter.service.d.mts.map +1 -1
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/dist/tsconfig.spec.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/vitest.config.d.mts.map +1 -1
- package/e2e/bun/xml-stream.spec.tsx +1 -18
- package/e2e/fastify/xml-stream.spec.tsx +1 -18
- package/lib/index.cjs +1 -1
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts.map +1 -1
- package/lib/index.d.mts.map +1 -1
- package/lib/index.mjs +1 -1
- package/lib/index.mjs.map +1 -1
- package/package.json +7 -7
- package/src/adapters/xml-stream-adapter.service.mts +2 -5
- package/vitest.config.mts +1 -0
|
@@ -7,11 +7,10 @@ import type {
|
|
|
7
7
|
} from '@navios/core'
|
|
8
8
|
|
|
9
9
|
import {
|
|
10
|
-
InstanceResolverService,
|
|
11
10
|
inject,
|
|
12
11
|
Injectable,
|
|
12
|
+
InstanceResolverService,
|
|
13
13
|
StreamAdapterToken,
|
|
14
|
-
XmlStreamAdapterToken,
|
|
15
14
|
} from '@navios/core'
|
|
16
15
|
|
|
17
16
|
import type { BaseXmlStreamConfig } from '../types/config.mjs'
|
|
@@ -41,9 +40,7 @@ import { renderToXml } from '../runtime/render-to-xml.mjs'
|
|
|
41
40
|
* // and is used by endpoints decorated with @XmlStream()
|
|
42
41
|
* ```
|
|
43
42
|
*/
|
|
44
|
-
@Injectable(
|
|
45
|
-
token: XmlStreamAdapterToken,
|
|
46
|
-
})
|
|
43
|
+
@Injectable()
|
|
47
44
|
export class XmlStreamAdapterService implements AbstractHttpHandlerAdapterInterface {
|
|
48
45
|
/** Base stream adapter - we proxy hasSchema, prepareArguments, provideSchema to it */
|
|
49
46
|
protected streamAdapter = inject(StreamAdapterToken)
|