From 1e5f4683b94729e6a383dbbaa79a48f65a526473 Mon Sep 17 00:00:00 2001 From: Gary Tokman Date: Thu, 29 Aug 2024 20:16:14 -0400 Subject: [PATCH] fix: updates --- CODE_OF_CONDUCT.md | 25 ++++++++++++------------ packages/npm/send/example/ios/File.swift | 6 ------ packages/npm/send/ios/Send.swift | 11 +++++------ 3 files changed, 17 insertions(+), 25 deletions(-) delete mode 100644 packages/npm/send/example/ios/File.swift diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index 45d257b..15221e2 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -1,4 +1,3 @@ - # Contributor Covenant Code of Conduct ## Our Pledge @@ -18,23 +17,23 @@ diverse, inclusive, and healthy community. Examples of behavior that contributes to a positive environment for our community include: -* Demonstrating empathy and kindness toward other people -* Being respectful of differing opinions, viewpoints, and experiences -* Giving and gracefully accepting constructive feedback -* Accepting responsibility and apologizing to those affected by our mistakes, +- Demonstrating empathy and kindness toward other people +- Being respectful of differing opinions, viewpoints, and experiences +- Giving and gracefully accepting constructive feedback +- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience -* Focusing on what is best not just for us as individuals, but for the overall +- Focusing on what is best not just for us as individuals, but for the overall community Examples of unacceptable behavior include: -* The use of sexualized language or imagery, and sexual attention or advances of +- The use of sexualized language or imagery, and sexual attention or advances of any kind -* Trolling, insulting or derogatory comments, and personal or political attacks -* Public or private harassment -* Publishing others' private information, such as a physical or email address, +- Trolling, insulting or derogatory comments, and personal or political attacks +- Public or private harassment +- Publishing others' private information, such as a physical or email address, without their explicit permission -* Other conduct which could reasonably be considered inappropriate in a +- Other conduct which could reasonably be considered inappropriate in a professional setting ## Enforcement Responsibilities @@ -60,8 +59,8 @@ representative at an online or offline event. ## Enforcement Instances of abusive, harassing, or otherwise unacceptable behavior may be -reported to the community leaders responsible for enforcement at -[INSERT CONTACT METHOD]. +reported to the community leaders responsible for enforcement at [contact](contact@candle.fi). + All complaints will be reviewed and investigated promptly and fairly. All community leaders are obligated to respect the privacy and security of the diff --git a/packages/npm/send/example/ios/File.swift b/packages/npm/send/example/ios/File.swift deleted file mode 100644 index 207e0c5..0000000 --- a/packages/npm/send/example/ios/File.swift +++ /dev/null @@ -1,6 +0,0 @@ -// -// File.swift -// SendExample -// - -import Foundation diff --git a/packages/npm/send/ios/Send.swift b/packages/npm/send/ios/Send.swift index d45ee65..47e0721 100644 --- a/packages/npm/send/ios/Send.swift +++ b/packages/npm/send/ios/Send.swift @@ -8,12 +8,6 @@ private func bodyIsUTF8(contentTypeHeader: String?, utf8ContentTypes: [String]) return utf8ContentTypes.contains(String(contentType)) } -final class IgnoreRedirectsDelegate: NSObject, URLSessionTaskDelegate { - func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest) async -> URLRequest? { - return nil - } -} - extension SendError: Error {} extension Request { @@ -93,6 +87,11 @@ extension Response { } } +final class IgnoreRedirectsDelegate: NSObject, URLSessionTaskDelegate { + func urlSession(_ session: URLSession, task: URLSessionTask, willPerformHTTPRedirection response: HTTPURLResponse, newRequest request: URLRequest) async -> URLRequest? { + return nil + } +} final class NetworkManager { static let shared = NetworkManager()