From 1c0e5f264d5470ca1e4f6f8b2e6e8fc3b24d0e51 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Fri, 3 Nov 2023 21:36:10 +0100 Subject: [PATCH] fix(core): update --- package.json | 6 +---- pnpm-lock.yaml | 29 +++++++++++++++---------- test/test.streamfunction.ts | 3 +-- ts/00_commitinfo_data.ts | 2 +- ts/smartstream.classes.streamwrapper.ts | 11 ---------- ts/smartstream.plugins.ts | 5 ----- 6 files changed, 20 insertions(+), 36 deletions(-) diff --git a/package.json b/package.json index 42c2a19..a308b8d 100644 --- a/package.json +++ b/package.json @@ -30,11 +30,7 @@ }, "dependencies": { "@push.rocks/smartpromise": "^4.0.3", - "@push.rocks/smartrx": "^3.0.7", - "@types/from2": "^2.3.4", - "@types/through2": "^2.0.40", - "from2": "^2.3.0", - "through2": "^4.0.2" + "@push.rocks/smartrx": "^3.0.7" }, "browserslist": [ "last 1 chrome versions" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 70213be..826a105 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,18 +11,6 @@ dependencies: '@push.rocks/smartrx': specifier: ^3.0.7 version: 3.0.7 - '@types/from2': - specifier: ^2.3.4 - version: 2.3.4 - '@types/through2': - specifier: ^2.0.40 - version: 2.0.40 - from2: - specifier: ^2.3.0 - version: 2.3.0 - through2: - specifier: ^4.0.2 - version: 4.0.2 devDependencies: '@git.zone/tsbuild': @@ -1448,6 +1436,7 @@ packages: resolution: {integrity: sha512-Ofj/U9ytMjG5FIfFlTokSyGQdLgX8js+hbw9/qxZQbsGRjcjQPzoLGZhe6OEzrg7Sd98Il57iyxDtU1ArvCSTw==} dependencies: '@types/node': 20.8.10 + dev: true /@types/fs-extra@11.0.3: resolution: {integrity: sha512-sF59BlXtUdzEAL1u0MSvuzWd7PdZvZEtnaVkzX5mjpdWTJ8brG0jUqve3jPCzSzvAKKMHTG8F8o/WMQLtleZdQ==} @@ -1568,6 +1557,7 @@ packages: resolution: {integrity: sha512-TlgT8JntpcbmKUFzjhsyhGfP2fsiz1Mv56im6enJ905xG1DAYesxJaeSbGqQmAw8OWPdhyJGhGSQGKRNJ45u9w==} dependencies: undici-types: 5.26.5 + dev: true /@types/parse5@6.0.3: resolution: {integrity: sha512-SuT16Q1K51EAVPz1K29DJ/sXjhSQ0zjvsypYJ6tlwVsRV9jwW5Adq2ch8Dq8kDBCkYnELS7N7VNCSB5nC56t/g==} @@ -1637,6 +1627,7 @@ packages: resolution: {integrity: sha512-QeEwyeGxvtKjP0I/SR8pHtKMgmqotWTI8V/rNMTjbF3arWZJV/kYtbZXtwQKxUuV/oPSGkUilSspFKkTgCPTpA==} dependencies: '@types/node': 20.8.10 + dev: true /@types/trusted-types@2.0.5: resolution: {integrity: sha512-I3pkr8j/6tmQtKV/ZzHtuaqYSQvyjGRKH4go60Rr0IDLlFxuRT5V32uvB1mecM5G1EVAUyF/4r4QZ1GHgz+mxA==} @@ -2331,6 +2322,7 @@ packages: /core-util-is@1.0.3: resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==} + dev: true /cors@2.8.5: resolution: {integrity: sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==} @@ -2999,6 +2991,7 @@ packages: dependencies: inherits: 2.0.4 readable-stream: 2.3.8 + dev: true /fs-constants@1.0.0: resolution: {integrity: sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==} @@ -3377,6 +3370,7 @@ packages: /inherits@2.0.4: resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} + dev: true /internal-slot@1.0.6: resolution: {integrity: sha512-Xj6dv+PsbtwyPpEflsejS+oIZxmMlV44zAhG479uYu89MsjcYOhCFnNyKrkJrihbsiasQyY0afoCl/9BLR65bg==} @@ -3593,6 +3587,7 @@ packages: /isarray@1.0.0: resolution: {integrity: sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=} + dev: true /isarray@2.0.5: resolution: {integrity: sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw==} @@ -4491,6 +4486,7 @@ packages: /process-nextick-args@2.0.1: resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==} + dev: true /progress@2.0.3: resolution: {integrity: sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==} @@ -4626,6 +4622,7 @@ packages: safe-buffer: 5.1.2 string_decoder: 1.1.1 util-deprecate: 1.0.2 + dev: true /readable-stream@3.6.2: resolution: {integrity: sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==} @@ -4634,6 +4631,7 @@ packages: inherits: 2.0.4 string_decoder: 1.3.0 util-deprecate: 1.0.2 + dev: true /readdirp@3.6.0: resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==} @@ -4747,9 +4745,11 @@ packages: /safe-buffer@5.1.2: resolution: {integrity: sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==} + dev: true /safe-buffer@5.2.1: resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} + dev: true /safe-regex-test@1.0.0: resolution: {integrity: sha512-JBUUzyOgEwXQY1NuPtvcj/qcBDbDmEvWufhlnXZIm75DEHp+afM1r1ujJpJsV/gSM4t59tpDyPi1sd6ZaPFfsA==} @@ -5073,11 +5073,13 @@ packages: resolution: {integrity: sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==} dependencies: safe-buffer: 5.1.2 + dev: true /string_decoder@1.3.0: resolution: {integrity: sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==} dependencies: safe-buffer: 5.2.1 + dev: true /strip-ansi@4.0.0: resolution: {integrity: sha1-qEeQIusaw2iocTibY1JixQXuNo8=} @@ -5192,6 +5194,7 @@ packages: resolution: {integrity: sha512-iOqSav00cVxEEICeD7TjLB1sueEL+81Wpzp2bY17uZjZN0pWZPuo4suZ/61VujxmqSGFfgOcNuTZ85QJwNZQpw==} dependencies: readable-stream: 3.6.2 + dev: true /through@2.3.8: resolution: {integrity: sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=} @@ -5390,6 +5393,7 @@ packages: /undici-types@5.26.5: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} + dev: true /unicode-trie@0.3.1: resolution: {integrity: sha1-1nHd3YkQGgi6w3tqUWEBBgIFIIU=} @@ -5426,6 +5430,7 @@ packages: /util-deprecate@1.0.2: resolution: {integrity: sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=} + dev: true /utils-merge@1.0.1: resolution: {integrity: sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=} diff --git a/test/test.streamfunction.ts b/test/test.streamfunction.ts index 461eb86..aef5186 100644 --- a/test/test.streamfunction.ts +++ b/test/test.streamfunction.ts @@ -27,8 +27,7 @@ tap.test('should handle a read stream', async (tools) => { streamEndFunction: async (tools) => { tools.push(null); }, - }), - smartstream.cleanPipe(), + }) ]); // await streamWrapper.run(); }); diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index dee205b..024c934 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@push.rocks/smartstream', - version: '3.0.2', + version: '3.0.3', description: 'simplifies access to node streams' } diff --git a/ts/smartstream.classes.streamwrapper.ts b/ts/smartstream.classes.streamwrapper.ts index f85f464..624ad64 100644 --- a/ts/smartstream.classes.streamwrapper.ts +++ b/ts/smartstream.classes.streamwrapper.ts @@ -94,14 +94,3 @@ export class StreamWrapper { return done.promise; } } - -export let cleanPipe = () => { - return plugins.through2.obj( - (file, enc, cb) => { - cb(); - }, - (cb) => { - cb(); - } - ); -}; diff --git a/ts/smartstream.plugins.ts b/ts/smartstream.plugins.ts index 8d2e2a8..a3e17e7 100644 --- a/ts/smartstream.plugins.ts +++ b/ts/smartstream.plugins.ts @@ -9,8 +9,3 @@ import * as smartrx from '@push.rocks/smartrx'; export { smartpromise, smartrx }; -// thirdparty -import from2 from 'from2'; -import through2 from 'through2'; - -export { from2, through2 };