@oozcitak/url 0.0.7 → 1.0.0

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 (47) hide show
  1. package/README.md +14 -0
  2. package/lib/URLAlgorithm.d.ts +267 -321
  3. package/lib/URLAlgorithm.js +2217 -2184
  4. package/lib/URLAlgorithm.js.map +1 -1
  5. package/lib/URLImpl.d.ts +22 -14
  6. package/lib/URLImpl.js +24 -25
  7. package/lib/URLImpl.js.map +1 -1
  8. package/lib/URLSearchParamsImpl.d.ts +0 -2
  9. package/lib/URLSearchParamsImpl.js +4 -5
  10. package/lib/URLSearchParamsImpl.js.map +1 -1
  11. package/lib/index.d.ts +2 -4
  12. package/lib/index.js +4 -15
  13. package/lib/index.js.map +1 -1
  14. package/package.json +5 -5
  15. package/lib/IDNAMappingTable.d.ts +0 -41
  16. package/lib/IDNAMappingTable.js +0 -8688
  17. package/lib/IDNAMappingTable.js.map +0 -1
  18. package/lib/TreeMap.d.ts +0 -39
  19. package/lib/TreeMap.js +0 -105
  20. package/lib/TreeMap.js.map +0 -1
  21. package/lib/algorithm/URLAlgorithm.d.ts +0 -321
  22. package/lib/algorithm/URLAlgorithm.js +0 -2552
  23. package/lib/algorithm/URLAlgorithm.js.map +0 -1
  24. package/lib/algorithm/index.d.ts +0 -1
  25. package/lib/algorithm/index.js +0 -5
  26. package/lib/algorithm/index.js.map +0 -1
  27. package/lib/interfacesInternal.d.ts +0 -22
  28. package/lib/interfacesInternal.js +0 -3
  29. package/lib/interfacesInternal.js.map +0 -1
  30. package/lib/url/URLImpl.d.ts +0 -45
  31. package/lib/url/URLImpl.js +0 -329
  32. package/lib/url/URLImpl.js.map +0 -1
  33. package/lib/url/URLSearchParamsImpl.d.ts +0 -40
  34. package/lib/url/URLSearchParamsImpl.js +0 -184
  35. package/lib/url/URLSearchParamsImpl.js.map +0 -1
  36. package/lib/url/index.d.ts +0 -4
  37. package/lib/url/index.js +0 -16
  38. package/lib/url/index.js.map +0 -1
  39. package/lib/url/interfaces.d.ts +0 -195
  40. package/lib/url/interfaces.js +0 -31
  41. package/lib/url/interfaces.js.map +0 -1
  42. package/lib/util/StringWalker.d.ts +0 -48
  43. package/lib/util/StringWalker.js +0 -92
  44. package/lib/util/StringWalker.js.map +0 -1
  45. package/lib/util/index.d.ts +0 -59
  46. package/lib/util/index.js +0 -170
  47. package/lib/util/index.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oozcitak/url",
3
- "version": "0.0.7",
3
+ "version": "1.0.0",
4
4
  "keywords": [
5
5
  "url",
6
6
  "whatwg"
@@ -20,14 +20,14 @@
20
20
  "main": "./lib/index",
21
21
  "types": "lib/index.d.ts",
22
22
  "engines": {
23
- "node": ">=6.0"
23
+ "node": ">=8.0"
24
24
  },
25
25
  "files": [
26
26
  "lib/**/*"
27
27
  ],
28
28
  "dependencies": {
29
- "@oozcitak/infra": "1.0.2",
30
- "@oozcitak/uts46": "0.0.7"
29
+ "@oozcitak/util": "1.0.2",
30
+ "@oozcitak/infra": "1.0.3"
31
31
  },
32
32
  "devDependencies": {
33
33
  "typescript": "*",
@@ -48,7 +48,7 @@
48
48
  ]
49
49
  },
50
50
  "scripts": {
51
- "compile": "tsc",
51
+ "compile": "rm -rf ./lib && tsc --version && tsc",
52
52
  "test": "npm run compile && jest --coverage",
53
53
  "publish-public": "npm run test && npm publish --access public"
54
54
  }
@@ -1,41 +0,0 @@
1
- export declare enum Status {
2
- Valid = 0,
3
- Ignored = 1,
4
- Mapped = 2,
5
- Deviation = 3,
6
- Disallowed = 4,
7
- DisallowedSTD3Valid = 5,
8
- DisallowedSTD3Mapped = 6
9
- }
10
- export declare enum IDNA2008Status {
11
- NV8 = 0,
12
- XV8 = 1,
13
- None = 2
14
- }
15
- /**
16
- * Contains lookup values from the:
17
- * http://www.unicode.org/reports/tr46
18
- * Version: 12.1.0
19
- * Date: 2019-04-01, 09:17:25 GMT
20
- */
21
- export declare class IDNAMappingTable {
22
- private static _instance;
23
- private _table;
24
- private _tableInit;
25
- /**
26
- * Initializes a new `IDNAMappingTable`.
27
- */
28
- private constructor();
29
- /**
30
- * Gets the `IDNAMappingTable` instance.
31
- */
32
- static readonly instance: IDNAMappingTable;
33
- /**
34
- * Gets a value from the lookup table.
35
- */
36
- get(key: number): [Status, number[], IDNA2008Status];
37
- /**
38
- * Initializes the lookup table.
39
- */
40
- private _init;
41
- }