@yarnpkg/fslib
Advanced tools
Comparing version 2.10.1 to 2.10.2
@@ -21,3 +21,3 @@ "use strict"; | ||
return +time; | ||
if (Number.isFinite(time)) { | ||
if (typeof time === `number` && Number.isFinite(time)) { | ||
if (time < 0) { | ||
@@ -633,3 +633,3 @@ return Date.now() / 1000; | ||
break; | ||
const index = this.libzip.name.locate(this.zip, resolvedP.slice(1)); | ||
const index = this.libzip.name.locate(this.zip, resolvedP.slice(1), 0); | ||
if (index === -1) | ||
@@ -661,3 +661,3 @@ break; | ||
const { buffer, byteLength } = this.allocateBuffer(content); | ||
const source = this.libzip.source.fromUnattachedBuffer(buffer, byteLength, 0, true, error); | ||
const source = this.libzip.source.fromUnattachedBuffer(buffer, byteLength, 0, 1, error); | ||
if (source === 0) { | ||
@@ -671,3 +671,3 @@ this.libzip.free(error); | ||
const { buffer, byteLength } = this.allocateBuffer(content); | ||
const source = this.libzip.source.fromBuffer(this.zip, buffer, byteLength, 0, true); | ||
const source = this.libzip.source.fromBuffer(this.zip, buffer, byteLength, 0, 1); | ||
if (source === 0) { | ||
@@ -674,0 +674,0 @@ this.libzip.free(buffer); |
{ | ||
"name": "@yarnpkg/fslib", | ||
"version": "2.10.1", | ||
"version": "2.10.2", | ||
"license": "BSD-2-Clause", | ||
@@ -8,3 +8,3 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@yarnpkg/libzip": "^2.2.4", | ||
"@yarnpkg/libzip": "^2.3.0", | ||
"tslib": "^1.13.0" | ||
@@ -11,0 +11,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
277194
Updated@yarnpkg/libzip@^2.3.0