gcs-resumable-upload
Advanced tools
Comparing version 2.2.4 to 2.2.5
#!/usr/bin/env node | ||
/** | ||
/*! | ||
* Copyright 2018 Google LLC | ||
* | ||
* Distributed under MIT license. | ||
* See file LICENSE for detail or copy at https://opensource.org/licenses/MIT | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
export {}; |
#!/usr/bin/env node | ||
"use strict"; | ||
/** | ||
/*! | ||
* Copyright 2018 Google LLC | ||
* | ||
* Distributed under MIT license. | ||
* See file LICENSE for detail or copy at https://opensource.org/licenses/MIT | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
@@ -9,0 +18,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -1,6 +0,15 @@ | ||
/** | ||
/*! | ||
* Copyright 2018 Google LLC | ||
* | ||
* Distributed under MIT license. | ||
* See file LICENSE for detail or copy at https://opensource.org/licenses/MIT | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
@@ -7,0 +16,0 @@ /// <reference types="node" /> |
"use strict"; | ||
/** | ||
/*! | ||
* Copyright 2018 Google LLC | ||
* | ||
* Distributed under MIT license. | ||
* See file LICENSE for detail or copy at https://opensource.org/licenses/MIT | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
@@ -68,3 +77,5 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
const configPath = cfg.configPath; | ||
this.configStore = new ConfigStore('gcs-resumable-upload', { configPath }); | ||
this.configStore = new ConfigStore('gcs-resumable-upload', null, { | ||
configPath, | ||
}); | ||
this.uriProvidedManually = !!cfg.uri; | ||
@@ -177,2 +188,5 @@ this.uri = cfg.uri || this.get('uri'); | ||
} | ||
if (resp && resp.data) { | ||
resp.data.size = Number(resp.data.size); | ||
} | ||
this.emit('metadata', resp.data); | ||
@@ -179,0 +193,0 @@ this.deleteConfig(); |
@@ -7,2 +7,9 @@ # Changelog | ||
### [2.2.5](https://www.github.com/googleapis/gcs-resumable-upload/compare/v2.2.4...v2.2.5) (2019-09-07) | ||
### Bug Fixes | ||
* typecast metadata.size from string to number ([#263](https://www.github.com/googleapis/gcs-resumable-upload/issues/263)) ([64ea7a1](https://www.github.com/googleapis/gcs-resumable-upload/commit/64ea7a1)) | ||
### [2.2.4](https://www.github.com/googleapis/gcs-resumable-upload/compare/v2.2.3...v2.2.4) (2019-08-15) | ||
@@ -9,0 +16,0 @@ |
{ | ||
"name": "gcs-resumable-upload", | ||
"version": "2.2.4", | ||
"version": "2.2.5", | ||
"description": "Upload a file to Google Cloud Storage with built-in resumable behavior", | ||
@@ -73,4 +73,4 @@ "repository": "googleapis/gcs-resumable-upload", | ||
"source-map-support": "^0.5.6", | ||
"typescript": "~3.5.0" | ||
"typescript": "~3.6.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Mixed license
License(Experimental) Package contains multiple licenses.
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
58125
618
1