@wocker/utils 1.0.6 → 1.0.8-dev.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.
@@ -10,8 +10,8 @@ const demuxOutput = (buffer) => {
10
10
  output = Buffer.concat([output, content]);
11
11
  }
12
12
  function bufferSlice(end) {
13
- const out = buffer.slice(0, end);
14
- buffer = Buffer.from(buffer.slice(end, buffer.length));
13
+ const out = (buffer.slice || buffer.subarray)(0, end);
14
+ buffer = Buffer.from((buffer.slice || buffer.subarray)(end, buffer.length));
15
15
  return out;
16
16
  }
17
17
  return output;
@@ -1 +1,2 @@
1
- export {};
1
+ import { Volume } from "./volumeFormat";
2
+ export declare const volumeParse: (volume: string) => Volume;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.volumeParse = void 0;
3
4
  const volumeParse = (volume) => {
4
5
  const regVolume = /^([^:]+):([^:]+)(?::([^:]+))?$/;
5
6
  const [, source, destination, options] = regVolume.exec(volume) || [];
@@ -9,3 +10,4 @@ const volumeParse = (volume) => {
9
10
  options
10
11
  };
11
12
  };
13
+ exports.volumeParse = volumeParse;
package/package.json CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "name": "@wocker/utils",
3
- "version": "1.0.6",
3
+ "version": "1.0.8-dev.0",
4
4
  "author": "Kris Papercut <krispcut@gmail.com>",
5
5
  "description": "Utils for @wocker",
6
6
  "license": "MIT",
7
7
  "main": "lib/index.js",
8
8
  "types": "lib/index.d.ts",
9
9
  "keywords": [
10
- "wocker"
10
+ "wocker",
11
+ "cli",
12
+ "utils"
11
13
  ],
12
14
  "homepage": "https://kearisp.github.io/wocker",
13
15
  "repository": {
@@ -29,6 +31,6 @@
29
31
  "devDependencies": {
30
32
  "@types/inquirer": "^7.3.3",
31
33
  "jest": "^29.7.0",
32
- "typescript": "^5.4.5"
34
+ "typescript": "^5.6.3"
33
35
  }
34
36
  }