@t4h.framework/zip 0.0.0-experimental-29d0277 → 0.0.0-experimental-20261019200828

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 CHANGED
@@ -1,5 +1,15 @@
1
1
  # @t4h.framework/zip
2
2
 
3
+ ## 0.0.0-experimental-20261019200828
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`6d3ac91`](https://github.com/tech4humans-brasil/framework/commit/6d3ac91054fa3ecbe77fbe25d112439007e2df11)]:
8
+ - @t4h.framework/core@0.0.0-experimental-20261019200828
9
+ - @t4h.framework/fs@0.0.0-experimental-20261019200828
10
+
11
+ ## 0.2.9
12
+
3
13
  ## 0.2.8
4
14
 
5
15
  ## 0.2.7
package/README.md CHANGED
@@ -105,9 +105,9 @@ The package never holds an archive, or an entry, in memory.
105
105
 
106
106
  Ranged reads need a binary the file system claim owns. An `sftp.get` reference
107
107
  or an HTTP body is not one: for those, the archive is streamed **once** into
108
- storage (`zip/<activity-id>.zip`) and the ranges are read from that copy — the
109
- same trade `split` makes. It costs one pass and one durable copy of the
110
- archive, and everything downstream behaves identically.
108
+ storage (`zip/<activity-id>.zip`) and the ranges are read from that copy. It
109
+ costs one pass and one durable copy of the archive, and everything downstream
110
+ behaves identically.
111
111
 
112
112
  Nothing has to be configured for this; it is the fallback, not a mode.
113
113
 
@@ -9,14 +9,13 @@ function toRegExp(pattern) {
9
9
  let source = '^';
10
10
  for (let index = 0; index < pattern.length; index += 1) {
11
11
  const char = pattern[index];
12
+ if (char === '*' && pattern[index + 1] === '*') {
13
+ source += '.*';
14
+ index += 1;
15
+ continue;
16
+ }
12
17
  if (char === '*') {
13
- if (pattern[index + 1] === '*') {
14
- source += '.*';
15
- index += 1;
16
- }
17
- else {
18
- source += '[^/]*';
19
- }
18
+ source += '[^/]*';
20
19
  continue;
21
20
  }
22
21
  source += char === '?' ? '[^/]' : escape(char);
@@ -1 +1 @@
1
- {"version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AAM,GAAG,CAAC,CAAA;IAEvC,KAAK,CAAC,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC,CAAA;IAE1B,OAAO,MAAM,CAAA;AACf,CAAC;AAED,SAAS,MAAM,CAAC,IAAY;IAC1B,OAAO,oBAAoB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;AAC7D,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@t4h.framework/zip",
3
- "version": "0.0.0-experimental-29d0277",
3
+ "version": "0.0.0-experimental-20261019200828",
4
4
  "description": "ZIP extraction module for the T4H Framework",
5
5
  "homepage": "https://github.com/tech4humans-brasil/framework/tree/main/packages/zip",
6
6
  "bugs": "https://github.com/tech4humans-brasil/framework/issues",
@@ -26,20 +26,20 @@
26
26
  "scripts": {
27
27
  "build": "tsc --project tsconfig.build.json",
28
28
  "check-types": "tsc --noEmit",
29
- "lint": "eslint .",
29
+ "lint": "eslint . --max-warnings 0",
30
30
  "prepublishOnly": "yarn build",
31
31
  "test": "vitest run",
32
32
  "test:watch": "vitest"
33
33
  },
34
34
  "devDependencies": {
35
- "@t4h.framework/core": "^0.0.0-experimental-29d0277",
36
- "@t4h.framework/fs": "^0.0.0-experimental-29d0277",
35
+ "@t4h.framework/core": "^0.0.0-experimental-20261019200828",
36
+ "@t4h.framework/fs": "^0.0.0-experimental-20261019200828",
37
37
  "typescript": "^5.9.3",
38
38
  "vitest": "^4.0.18"
39
39
  },
40
40
  "peerDependencies": {
41
- "@t4h.framework/core": "0.0.0-experimental-29d0277",
42
- "@t4h.framework/fs": "0.0.0-experimental-29d0277"
41
+ "@t4h.framework/core": "0.0.0-experimental-20261019200828",
42
+ "@t4h.framework/fs": "0.0.0-experimental-20261019200828"
43
43
  },
44
44
  "packageManager": "yarn@4.12.0",
45
45
  "engines": {
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Tech for humans
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.