@lingxia/rong 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/README.md +59 -0
  2. package/dist/abort.d.ts +36 -0
  3. package/dist/abort.d.ts.map +1 -0
  4. package/dist/abort.js +6 -0
  5. package/dist/assert.d.ts +44 -0
  6. package/dist/assert.d.ts.map +1 -0
  7. package/dist/assert.js +6 -0
  8. package/dist/buffer.d.ts +45 -0
  9. package/dist/buffer.d.ts.map +1 -0
  10. package/dist/buffer.js +6 -0
  11. package/dist/child_process.d.ts +99 -0
  12. package/dist/child_process.d.ts.map +1 -0
  13. package/dist/child_process.js +6 -0
  14. package/dist/console.d.ts +40 -0
  15. package/dist/console.d.ts.map +1 -0
  16. package/dist/console.js +9 -0
  17. package/dist/encoding.d.ts +10 -0
  18. package/dist/encoding.d.ts.map +1 -0
  19. package/dist/encoding.js +10 -0
  20. package/dist/error.d.ts +104 -0
  21. package/dist/error.d.ts.map +1 -0
  22. package/dist/error.js +90 -0
  23. package/dist/event.d.ts +96 -0
  24. package/dist/event.d.ts.map +1 -0
  25. package/dist/event.js +6 -0
  26. package/dist/exception.d.ts +19 -0
  27. package/dist/exception.d.ts.map +1 -0
  28. package/dist/exception.js +6 -0
  29. package/dist/fs.d.ts +450 -0
  30. package/dist/fs.d.ts.map +1 -0
  31. package/dist/fs.js +23 -0
  32. package/dist/global.d.ts +76 -0
  33. package/dist/global.d.ts.map +1 -0
  34. package/dist/global.js +8 -0
  35. package/dist/http.d.ts +117 -0
  36. package/dist/http.d.ts.map +1 -0
  37. package/dist/http.js +9 -0
  38. package/dist/index.d.ts +56 -0
  39. package/dist/index.d.ts.map +1 -0
  40. package/dist/index.js +77 -0
  41. package/dist/navigator.d.ts +16 -0
  42. package/dist/navigator.d.ts.map +1 -0
  43. package/dist/navigator.js +6 -0
  44. package/dist/path.d.ts +70 -0
  45. package/dist/path.d.ts.map +1 -0
  46. package/dist/path.js +6 -0
  47. package/dist/process.d.ts +53 -0
  48. package/dist/process.d.ts.map +1 -0
  49. package/dist/process.js +6 -0
  50. package/dist/storage.d.ts +53 -0
  51. package/dist/storage.d.ts.map +1 -0
  52. package/dist/storage.js +8 -0
  53. package/dist/stream.d.ts +90 -0
  54. package/dist/stream.d.ts.map +1 -0
  55. package/dist/stream.js +90 -0
  56. package/dist/timer.d.ts +52 -0
  57. package/dist/timer.d.ts.map +1 -0
  58. package/dist/timer.js +6 -0
  59. package/dist/url.d.ts +75 -0
  60. package/dist/url.d.ts.map +1 -0
  61. package/dist/url.js +6 -0
  62. package/package.json +27 -0
  63. package/src/abort.ts +50 -0
  64. package/src/assert.ts +51 -0
  65. package/src/buffer.ts +60 -0
  66. package/src/child_process.ts +116 -0
  67. package/src/console.ts +53 -0
  68. package/src/encoding.ts +10 -0
  69. package/src/error.ts +149 -0
  70. package/src/event.ts +128 -0
  71. package/src/exception.ts +77 -0
  72. package/src/fs.ts +514 -0
  73. package/src/global.ts +98 -0
  74. package/src/http.ts +151 -0
  75. package/src/index.ts +67 -0
  76. package/src/navigator.ts +20 -0
  77. package/src/path.ts +83 -0
  78. package/src/process.ts +74 -0
  79. package/src/storage.ts +64 -0
  80. package/src/stream.ts +98 -0
  81. package/src/timer.ts +61 -0
  82. package/src/url.ts +106 -0
package/src/url.ts ADDED
@@ -0,0 +1,106 @@
1
+ /**
2
+ * URL module type definitions
3
+ * Corresponds to: modules/rong_url
4
+ */
5
+
6
+ export interface URLSearchParams {
7
+ /** Append a parameter */
8
+ append(name: string, value: string): void;
9
+
10
+ /** Delete all parameters with the given name */
11
+ delete(name: string): void;
12
+
13
+ /** Get the first value for a parameter */
14
+ get(name: string): string | null;
15
+
16
+ /** Get all values for a parameter */
17
+ getAll(name: string): string[];
18
+
19
+ /** Check if a parameter exists */
20
+ has(name: string): boolean;
21
+
22
+ /** Set a parameter value (replaces existing) */
23
+ set(name: string, value: string): void;
24
+
25
+ /** Sort parameters by name */
26
+ sort(): void;
27
+
28
+ /** Get all parameter entries */
29
+ entries(): Array<[string, string]>;
30
+
31
+ /** Get all parameter names */
32
+ keys(): string[];
33
+
34
+ /** Get all parameter values */
35
+ values(): string[];
36
+
37
+ /** Iterate over parameters */
38
+ forEach(callback: (value: string, key: string) => void, thisArg?: any): void;
39
+
40
+ /** Convert to query string */
41
+ toString(): string;
42
+
43
+ /** Number of parameters */
44
+ readonly size: number;
45
+ }
46
+
47
+ export interface URLSearchParamsConstructor {
48
+ new(): URLSearchParams;
49
+ new(init: string): URLSearchParams;
50
+ new(init: Array<[string, string]>): URLSearchParams;
51
+ new(init: Record<string, string>): URLSearchParams;
52
+ prototype: URLSearchParams;
53
+ }
54
+
55
+ export interface URL {
56
+ /** Fragment identifier (e.g., "#section") */
57
+ hash: string;
58
+
59
+ /** Hostname with port (e.g., "example.com:8080") */
60
+ host: string;
61
+
62
+ /** Hostname only (e.g., "example.com") */
63
+ hostname: string;
64
+
65
+ /** Full URL string */
66
+ href: string;
67
+
68
+ /** Protocol + host (e.g., "https://example.com") */
69
+ readonly origin: string;
70
+
71
+ /** Password component */
72
+ password: string;
73
+
74
+ /** Path component (e.g., "/path/to/resource") */
75
+ pathname: string;
76
+
77
+ /** Port number as string */
78
+ port: string;
79
+
80
+ /** Protocol scheme (e.g., "https:") */
81
+ protocol: string;
82
+
83
+ /** Query string (e.g., "?key=value") */
84
+ search: string;
85
+
86
+ /** Username component */
87
+ username: string;
88
+
89
+ /** URL search parameters interface */
90
+ readonly searchParams: URLSearchParams;
91
+
92
+ /** Convert to string */
93
+ toString(): string;
94
+
95
+ /** Convert to JSON */
96
+ toJSON(): string;
97
+ }
98
+
99
+ export interface URLConstructor {
100
+ new(url: string, base?: string): URL;
101
+ prototype: URL;
102
+ }
103
+
104
+ // Note: URL and URLSearchParams are provided by the global environment (Web API)
105
+ // These type definitions are for reference and extend the standard Web API
106
+ export {};