@wp-playground/blueprints 1.0.26 → 1.0.28

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/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # playground-blueprints
2
+
3
+ This library was generated with [Nx](https://nx.dev).
4
+
5
+ ## Building
6
+
7
+ Run `nx build playground-blueprints` to build the library.
8
+
9
+ ## Running unit tests
10
+
11
+ Run `nx test playground-blueprints` to execute the unit tests via [Jest](https://jestjs.io).
package/index.cjs CHANGED
@@ -713,7 +713,8 @@ function zipDir($root, $output, $options = array())
713
713
  $directory_path = $entry . '/';
714
714
  array_push($directories, $directory_path);
715
715
  } else if (is_file($entry)) {
716
- $zip->addFile($entry, substr($entry, strlen($zip_root)));
716
+ // ensure compliance with zip spec by only using relative paths for files
717
+ $zip->addFile($entry, ltrim(substr($entry, strlen($zip_root)), '/'));
717
718
  }
718
719
  }
719
720
  closedir($handle);