Skip to content

Commit a2158bd

Browse files
committed
Rename namespaces to ManagedCode prefix
1 parent ed35ee6 commit a2158bd

File tree

10 files changed

+17
-14
lines changed

10 files changed

+17
-14
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<PackageReadmeFile>README.md</PackageReadmeFile>
2020
<RepositoryUrl>https://github.com/AtuboDad/playwright_stealth</RepositoryUrl>
2121
<PackageProjectUrl>https://github.com/AtuboDad/playwright_stealth</PackageProjectUrl>
22-
<Product>Playwright Stealth</Product>
22+
<Product>ManagedCode Playwright Stealth</Product>
2323
<Version>1.0.0</Version>
2424
<PackageVersion>1.0.0</PackageVersion>
2525
</PropertyGroup>

Playwright.Stealth.sln

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ VisualStudioVersion = 17.0.31903.59
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{827E0CD3-B72D-47B6-A68D-7590B98EB39B}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Playwright.Stealth", "src\Playwright.Stealth\Playwright.Stealth.csproj", "{4FEFBA12-C714-433F-BA7E-8BAC95CCB72A}"
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ManagedCode.Playwright.Stealth", "src\Playwright.Stealth\Playwright.Stealth.csproj", "{4FEFBA12-C714-433F-BA7E-8BAC95CCB72A}"
99
EndProject
1010
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{0AB3BF05-4346-4AA6-1389-037BE0695223}"
1111
EndProject
12-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Playwright.Stealth.Tests", "tests\Playwright.Stealth.Tests\Playwright.Stealth.Tests.csproj", "{E168CA70-F764-4D1F-A424-23C692241414}"
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ManagedCode.Playwright.Stealth.Tests", "tests\Playwright.Stealth.Tests\Playwright.Stealth.Tests.csproj", "{E168CA70-F764-4D1F-A424-23C692241414}"
1313
EndProject
1414
Global
1515
GlobalSection(SolutionConfigurationPlatforms) = preSolution

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
# Playwright.Stealth (.NET)
1+
# ManagedCode.Playwright.Stealth (.NET)
22

33
A .NET port of the Playwright stealth scripts from [AtuboDad/playwright_stealth](https://github.com/AtuboDad/playwright_stealth).
44
This package adds a single call to apply a collection of stealth init scripts to a Playwright page or browser context.
55

66
## Install
77

88
```bash
9-
dotnet add package Playwright.Stealth
9+
dotnet add package ManagedCode.Playwright.Stealth
1010
```
1111

1212
## Usage
1313

1414
```csharp
1515
using Microsoft.Playwright;
16-
using Playwright.Stealth;
16+
using ManagedCode.Playwright.Stealth;
1717

1818
using var playwright = await Playwright.CreateAsync();
1919
await using var browser = await playwright.Chromium.LaunchAsync(new BrowserTypeLaunchOptions

src/Playwright.Stealth/Playwright.Stealth.csproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<PackageId>Playwright.Stealth</PackageId>
5-
<Title>Playwright.Stealth</Title>
4+
<PackageId>ManagedCode.Playwright.Stealth</PackageId>
5+
<Title>ManagedCode.Playwright.Stealth</Title>
66
<Description>Stealth tweaks for Microsoft.Playwright.</Description>
77
<PackageTags>playwright;stealth;bot-detection</PackageTags>
8+
<RootNamespace>ManagedCode.Playwright.Stealth</RootNamespace>
9+
<AssemblyName>ManagedCode.Playwright.Stealth</AssemblyName>
810
</PropertyGroup>
911

1012
<ItemGroup>

src/Playwright.Stealth/PlaywrightStealthExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using Microsoft.Playwright;
22

3-
namespace Playwright.Stealth;
3+
namespace ManagedCode.Playwright.Stealth;
44

55
public static class PlaywrightStealthExtensions
66
{

src/Playwright.Stealth/StealthConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System.Collections.Generic;
22
using System.Text.Json;
33

4-
namespace Playwright.Stealth;
4+
namespace ManagedCode.Playwright.Stealth;
55

66
public sealed class StealthConfig
77
{

src/Playwright.Stealth/StealthScriptProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.IO;
33
using System.Reflection;
44

5-
namespace Playwright.Stealth;
5+
namespace ManagedCode.Playwright.Stealth;
66

77
internal static class StealthScriptProvider
88
{

tests/Playwright.Stealth.Tests/Playwright.Stealth.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
<PropertyGroup>
44
<IsTestProject>true</IsTestProject>
5+
<RootNamespace>ManagedCode.Playwright.Stealth.Tests</RootNamespace>
56
</PropertyGroup>
67

78
<ItemGroup>

tests/Playwright.Stealth.Tests/StealthConfigTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using TUnit.Assertions.Extensions;
33
using TUnit.Core;
44

5-
namespace Playwright.Stealth.Tests;
5+
namespace ManagedCode.Playwright.Stealth.Tests;
66

77
public sealed class StealthConfigTests
88
{

tests/Playwright.Stealth.Tests/StealthIntegrationTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
using System.Globalization;
22
using Microsoft.Playwright;
3-
using Playwright.Stealth;
3+
using ManagedCode.Playwright.Stealth;
44
using TUnit.Assertions;
55
using TUnit.Assertions.Extensions;
66
using TUnit.Core;
77

8-
namespace Playwright.Stealth.Tests;
8+
namespace ManagedCode.Playwright.Stealth.Tests;
99

1010
public sealed class StealthIntegrationTests
1111
{

0 commit comments

Comments
 (0)