Skip to content

Commit

Permalink
Added ThridPartyNotices.txt; Updated package-lock.json; Improvded pip…
Browse files Browse the repository at this point in the history
…eline factory array construction
  • Loading branch information
XiaoningLiu authored and vinjiang committed Dec 3, 2018
1 parent 90f8959 commit 7b1f1ce
Show file tree
Hide file tree
Showing 5 changed files with 866 additions and 821 deletions.
30 changes: 30 additions & 0 deletions file/browser/ThirdPartyNotices.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
------------------------------------------- START OF THIRD PARTY NOTICE -----------------------------------------
This file is based on or incorporates material from the projects listed below (Third Party Programs). The original copyright notice and the license under which Microsoft received such Third Party Programs, are set forth below. Such licenses and notices are provided for informational purposes only.
**********

uuid 3.2.2, Copyright (c) 2010-2016 Robert Kieffer and other contributors
events 3.0.0, Copyright Joyent, Inc. and other Node contributors.


The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
**********

----------------------------------------------- END OF THIRD PARTY NOTICE ------------------------------------------

4 changes: 2 additions & 2 deletions file/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const zip = require("gulp-zip");
const version = require("./package.json").version;
const zipFileName = `azurestoragejs.file-${version}.zip`;

gulp.task("zip", () => {
gulp.task("zip", async () => {
return gulp
.src([
"browser/azure-storage.file.js",
Expand All @@ -13,4 +13,4 @@ gulp.task("zip", () => {
])
.pipe(zip(zipFileName))
.pipe(gulp.dest("browser"));
});
});
17 changes: 9 additions & 8 deletions file/lib/StorageURL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,15 @@ export abstract class StorageURL {
// Order is important. Closer to the API at the top & closer to the network at the bottom.
// The credential's policy factory must appear close to the wire so it can sign any
// changes made by other factories (like UniqueRequestIDPolicyFactory)
const factories: RequestPolicyFactory[] = [];
factories.push(new TelemetryPolicyFactory(pipelineOptions.telemetry));
factories.push(new UniqueRequestIDPolicyFactory());
factories.push(new BrowserPolicyFactory());
factories.push(deserializationPolicy()); // Default deserializationPolicy is provided by protocol layer
factories.push(new RetryPolicyFactory(pipelineOptions.retryOptions));
factories.push(new LoggingPolicyFactory());
factories.push(credential);
const factories: RequestPolicyFactory[] = [
new TelemetryPolicyFactory(pipelineOptions.telemetry),
new UniqueRequestIDPolicyFactory(),
new BrowserPolicyFactory(),
deserializationPolicy(), // Default deserializationPolicy is provided by protocol layer
new RetryPolicyFactory(pipelineOptions.retryOptions),
new LoggingPolicyFactory(),
credential
];

return new Pipeline(factories, {
HTTPClient: pipelineOptions.httpClient,
Expand Down
Loading

0 comments on commit 7b1f1ce

Please sign in to comment.