Skip to content

Commit

Permalink
Install node types. Patch bittorrent-tracker. Remove modules ignoring…
Browse files Browse the repository at this point in the history
… for browsers in bittorrent-tracker package.json.
  • Loading branch information
i-zolotarenko committed Oct 11, 2023
1 parent 321cc6b commit 9a14429
Show file tree
Hide file tree
Showing 4 changed files with 258 additions and 56 deletions.
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
},
"devDependencies": {
"@types/debug": "^4.1.8",
"@types/node": "^20.8.4",
"@typescript-eslint/eslint-plugin": "^5.59.2",
"@typescript-eslint/parser": "^5.59.2",
"eslint": "^8.39.0",
Expand All @@ -26,5 +27,10 @@
},
"dependencies": {
"debug": "^4.3.4"
},
"pnpm": {
"patchedDependencies": {
"[email protected]": "patches/[email protected]"
}
}
}
2 changes: 1 addition & 1 deletion packages/p2p-media-loader-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
"type-check": "npx tsc --noEmit"
},
"dependencies": {
"bittorrent-tracker": "^9.19.0"
"bittorrent-tracker": "10.0.12"
}
}
138 changes: 138 additions & 0 deletions patches/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
diff --git a/.idea/.gitignore b/.idea/.gitignore
new file mode 100644
index 0000000000000000000000000000000000000000..b58b603fea78041071d125a30db58d79b3d49217
--- /dev/null
+++ b/.idea/.gitignore
@@ -0,0 +1,5 @@
+# Default ignored files
+/shelf/
+/workspace.xml
+# Editor-based HTTP Client requests
+/httpRequests/
diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml
new file mode 100644
index 0000000000000000000000000000000000000000..54ecbb2b9134d6a566fcd38f6f3c390218f5498b
--- /dev/null
+++ b/.idea/codeStyles/Project.xml
@@ -0,0 +1,44 @@
+<component name="ProjectCodeStyleConfiguration">
+ <code_scheme name="Project" version="173">
+ <HTMLCodeStyleSettings>
+ <option name="HTML_UNIFORM_INDENT" value="true" />
+ </HTMLCodeStyleSettings>
+ <JSCodeStyleSettings version="0">
+ <option name="USE_SEMICOLON_AFTER_STATEMENT" value="false" />
+ <option name="FORCE_SEMICOLON_STYLE" value="true" />
+ <option name="SPACE_BEFORE_GENERATOR_MULT" value="true" />
+ <option name="USE_DOUBLE_QUOTES" value="false" />
+ <option name="FORCE_QUOTE_STYlE" value="true" />
+ <option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
+ <option name="SPACES_WITHIN_IMPORTS" value="true" />
+ </JSCodeStyleSettings>
+ <codeStyleSettings language="HTML">
+ <indentOptions>
+ <option name="INDENT_SIZE" value="2" />
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
+ <option name="TAB_SIZE" value="2" />
+ </indentOptions>
+ </codeStyleSettings>
+ <codeStyleSettings language="JavaScript">
+ <option name="KEEP_BLANK_LINES_IN_CODE" value="1" />
+ <option name="ALIGN_MULTILINE_PARAMETERS" value="false" />
+ <option name="ALIGN_MULTILINE_FOR" value="false" />
+ <option name="SPACE_BEFORE_METHOD_PARENTHESES" value="true" />
+ <option name="TERNARY_OPERATION_SIGNS_ON_NEXT_LINE" value="true" />
+ <option name="KEEP_SIMPLE_BLOCKS_IN_ONE_LINE" value="true" />
+ <option name="KEEP_SIMPLE_METHODS_IN_ONE_LINE" value="true" />
+ <indentOptions>
+ <option name="INDENT_SIZE" value="2" />
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
+ <option name="TAB_SIZE" value="2" />
+ </indentOptions>
+ </codeStyleSettings>
+ <codeStyleSettings language="TypeScript">
+ <indentOptions>
+ <option name="INDENT_SIZE" value="2" />
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
+ <option name="TAB_SIZE" value="2" />
+ </indentOptions>
+ </codeStyleSettings>
+ </code_scheme>
+</component>
\ No newline at end of file
diff --git a/.idea/codeStyles/codeStyleConfig.xml b/.idea/codeStyles/codeStyleConfig.xml
new file mode 100644
index 0000000000000000000000000000000000000000..79ee123c2b23e069e35ed634d687e17f731cc702
--- /dev/null
+++ b/.idea/codeStyles/codeStyleConfig.xml
@@ -0,0 +1,5 @@
+<component name="ProjectCodeStyleConfiguration">
+ <state>
+ <option name="USE_PER_PROJECT_SETTINGS" value="true" />
+ </state>
+</component>
\ No newline at end of file
diff --git a/.idea/e50e68725add4f8d6518bfa3a5479dee.iml b/.idea/e50e68725add4f8d6518bfa3a5479dee.iml
new file mode 100644
index 0000000000000000000000000000000000000000..ebbda94b7d0f898ddad4c9aa59459fc21676874c
--- /dev/null
+++ b/.idea/e50e68725add4f8d6518bfa3a5479dee.iml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module type="WEB_MODULE" version="4">
+ <component name="NewModuleRootManager">
+ <content url="file://$MODULE_DIR$">
+ <excludeFolder url="file://$MODULE_DIR$/.tmp" />
+ <excludeFolder url="file://$MODULE_DIR$/temp" />
+ <excludeFolder url="file://$MODULE_DIR$/tmp" />
+ </content>
+ <orderEntry type="inheritedJdk" />
+ <orderEntry type="sourceFolder" forTests="false" />
+ </component>
+ <component name="SonarLintModuleSettings">
+ <option name="uniqueId" value="e2803c3f-971b-4c09-8d5b-188d7544d354" />
+ </component>
+</module>
\ No newline at end of file
diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml
new file mode 100644
index 0000000000000000000000000000000000000000..0be03f464545c7fdfc45458031b80a2b1b9bff17
--- /dev/null
+++ b/.idea/inspectionProfiles/Project_Default.xml
@@ -0,0 +1,6 @@
+<component name="InspectionProjectProfileManager">
+ <profile version="1.0">
+ <option name="myName" value="Project Default" />
+ <inspection_tool class="StandardJS" enabled="true" level="ERROR" enabled_by_default="true" />
+ </profile>
+</component>
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000000000000000000000000000000000000..1481ef72f8fc054af042eea2e463400b7aabea70
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+ <component name="ProjectModuleManager">
+ <modules>
+ <module fileurl="file://$PROJECT_DIR$/.idea/e50e68725add4f8d6518bfa3a5479dee.iml" filepath="$PROJECT_DIR$/.idea/e50e68725add4f8d6518bfa3a5479dee.iml" />
+ </modules>
+ </component>
+</project>
\ No newline at end of file
diff --git a/package.json b/package.json
index 9d537a8a1dd93687f4535bf2882b7b80139ec594..fe85f2f94b6d98f98ac926223ad077368ab80561 100644
--- a/package.json
+++ b/package.json
@@ -12,9 +12,6 @@
},
"browser": {
"./lib/common-node.js": false,
- "./lib/client/http-tracker.js": false,
- "./lib/client/udp-tracker.js": false,
- "./server.js": false,
"socks": false
},
"chromeapp": {
Loading

0 comments on commit 9a14429

Please sign in to comment.