Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update obsolete methods #169

Merged
merged 1 commit into from
Nov 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Smidge.Nuglify/SourceMapDeclaration.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.IO;
using Microsoft.Extensions.Options;
using Smidge.Cache;
Expand Down Expand Up @@ -66,11 +66,11 @@ private string GetSourceMapUrl(string bundleName, string fileExtension, bool deb
string.Format(
handler,
_smidgeOptions.Value.UrlOptions.BundleFilePath + "/nmap",
Uri.EscapeUriString(bundleName),
Uri.EscapeDataString(bundleName),
fileExtension,
debug ? 'd' : 'v',
cacheBusterValue));

}
}
}
}
8 changes: 4 additions & 4 deletions test/Smidge.Benchmarks/JsMinifyBenchmarks.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.IO;
using System.Linq;
using System.Reflection;
Expand Down Expand Up @@ -53,8 +53,8 @@ private class Config : ManualConfig
{
public Config()
{
Add(MemoryDiagnoser.Default);
Add(new MinifiedPercentColumn());
AddDiagnoser(MemoryDiagnoser.Default);
AddColumn(new MinifiedPercentColumn());

////The 'quick and dirty' settings, so it runs a little quicker
//// see benchmarkdotnet FAQ
Expand Down Expand Up @@ -168,4 +168,4 @@ public async Task Nuglify()
}

}
}
}