@noldova/browser.protocol 0.0.0-stage → 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 (37) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +6 -2
  3. package/package.json +44 -4
  4. package/src/api/index.d.ts +1767 -0
  5. package/src/api/index.js +35 -0
  6. package/src/enums/address-kind.js +14 -0
  7. package/src/enums/page-action.js +15 -0
  8. package/src/enums/page-activity-state.js +12 -0
  9. package/src/enums/typed-address-answer-kind.js +11 -0
  10. package/src/enums/typed-address-refusal.js +15 -0
  11. package/src/models/address-kinds.js +62 -0
  12. package/src/models/browser-events.js +10 -0
  13. package/src/models/browser-methods.js +23 -0
  14. package/src/models/browser-tool-names.js +30 -0
  15. package/src/models/browsing-data-request.js +25 -0
  16. package/src/models/held-pages.js +29 -0
  17. package/src/models/local-sites.js +46 -0
  18. package/src/models/open-pages-request.js +25 -0
  19. package/src/models/page-activity.js +69 -0
  20. package/src/models/page-agent.js +27 -0
  21. package/src/models/page-box.js +43 -0
  22. package/src/models/page-change-script.js +53 -0
  23. package/src/models/page-claim.js +40 -0
  24. package/src/models/page-point.js +32 -0
  25. package/src/models/page-record.js +29 -0
  26. package/src/models/page-refusal.js +33 -0
  27. package/src/models/page-request.js +25 -0
  28. package/src/models/page-stop-request.js +27 -0
  29. package/src/models/typed-address-allowed.js +30 -0
  30. package/src/models/typed-address-refused.js +32 -0
  31. package/src/models/typed-address-request.js +27 -0
  32. package/src/models/typed-redirect-request.js +29 -0
  33. package/src/resources.js +73 -0
  34. package/src/services/typed-address-answer.reader.js +19 -0
  35. package/src/services/wire-contract.js +28 -0
  36. package/src/types/browser-tool-name.js +8 -0
  37. package/src/types/typed-address-answer.js +8 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Noldova
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,7 @@
1
- # Temporary Holding Version
1
+ # @noldova/browser.protocol
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ The names and messages the browser module's runtime and window parts share: the tool names, a model class for each message, such as a typed address's request or a page's claim, that writes it with `toJson` and reads it with `fromJson`, refusing a malformed one with a `JsonException` that names the field's path, and the rules both parts read alike, such as what kind of address a URL's host is.
4
+
5
+ Both parts of [`@noldova/browser`](https://github.com/noldova-com/browser/tree/main/src/noldova.browser) import it by its name, and the module pins it at its own version.
6
+ [documents/ARCHITECTURE.md](https://github.com/noldova-com/browser/blob/main/documents/ARCHITECTURE.md) says how the parts talk, and the [README](https://github.com/noldova-com/browser#readme) how to build and test it.
7
+ It is licensed under the [MIT License](https://github.com/noldova-com/browser/blob/main/LICENSE).
package/package.json CHANGED
@@ -1,6 +1,46 @@
1
1
  {
2
2
  "name": "@noldova/browser.protocol",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.0.1",
4
+ "description": "The browser module's messages that its runtime and window parts exchange, as model classes that read and write their JSON, the tool names, and the rules both read alike: the kind of a URL's host and the sites on this computer or network.",
5
+ "type": "module",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/noldova-com/browser.git",
10
+ "directory": "src/noldova.browser.protocol"
11
+ },
12
+ "homepage": "https://github.com/noldova-com/browser#readme",
13
+ "bugs": {
14
+ "url": "https://github.com/noldova-com/browser/issues"
15
+ },
16
+ "exports": {
17
+ ".": {
18
+ "types": "./src/api/index.d.ts",
19
+ "default": "./src/api/index.js"
20
+ },
21
+ "./package.json": "./package.json"
22
+ },
23
+ "files": [
24
+ "src/**/*.js",
25
+ "src/**/*.js.map",
26
+ "src/**/*.d.ts"
27
+ ],
28
+ "publishConfig": {
29
+ "access": "public",
30
+ "registry": "https://registry.npmjs.org/"
31
+ },
32
+ "peerDependencies": {
33
+ "@noldova/context.exceptions": ">=0.0.7 <0.1.0",
34
+ "@noldova/context.json": ">=0.0.7 <0.1.0"
35
+ },
36
+ "dependencies": {},
37
+ "peerDependenciesMeta": {
38
+ "@noldova/context.exceptions": {
39
+ "optional": true
40
+ },
41
+ "@noldova/context.json": {
42
+ "optional": true
43
+ }
44
+ },
45
+ "gitHead": "2018e33b21139653413231e860e12de69f831426"
46
+ }