canada-api 1.0.0 → 1.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 (2) hide show
  1. package/README.md +9 -8
  2. package/package.json +8 -3
package/README.md CHANGED
@@ -1,18 +1,21 @@
1
1
  # canada-api
2
2
 
3
- API for fetching public data from [canada.ca](https://www.canada.ca). Implements rate limiting to prevent being throttled.
3
+ Cross platform API for fetching public data from [canada.ca](https://www.canada.ca).
4
4
 
5
5
  ## Install
6
6
 
7
7
  ### Browsers
8
8
 
9
- <script src="https://cdn.jsdelivr.net/gh/bsoicher/canada-api/dist/ca.js"><script>
9
+ <script src="https://cdn.jsdelivr.net/npm/canada-api@1.0.1/dist/ca.js"><script>
10
+ <script>
11
+ ca.meta("en/news").then(console.log)
12
+ </script>
10
13
 
11
14
  Support: Edge 15+, Firefox 54+, Chrome 51+, Safari 10+
12
15
 
13
16
  ### Nodejs
14
17
 
15
- Will be published to npm once stable
18
+ npm install canada-api
16
19
 
17
20
  ## API
18
21
 
@@ -20,12 +23,10 @@ Will be published to npm once stable
20
23
 
21
24
  Fetches listing of child nodes
22
25
 
23
- ### ca.content(node)
24
-
25
- Fetches content of a node
26
-
27
26
  ### ca.meta(node)
28
27
 
29
28
  Fetches metadata of a node
30
29
 
31
- Note: API also works for DAM assets
30
+ ### ca.content(node)
31
+
32
+ Fetches content of a node
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "canada-api",
3
- "version": "1.0.0",
4
- "description": "API for fetching data from canada.ca",
3
+ "version": "1.0.1",
4
+ "description": "Cross platform API to fetch data from canada.ca",
5
+ "main": "dist/ca.js",
5
6
  "scripts": {
6
7
  "test": "echo \"Error: no test specified\" && exit 1",
7
8
  "build": "webpack",
@@ -11,6 +12,10 @@
11
12
  "type": "git",
12
13
  "url": "git+https://github.com/bsoicher/canada-api.git"
13
14
  },
15
+ "keywords": [
16
+ "canada",
17
+ "api"
18
+ ],
14
19
  "author": "Ben Soicher",
15
20
  "license": "MIT",
16
21
  "bugs": {
@@ -18,7 +23,7 @@
18
23
  },
19
24
  "homepage": "https://github.com/bsoicher/canada-api#readme",
20
25
  "devDependencies": {
21
- "webpack": "^5.70.0",
26
+ "webpack": "^5.72.0",
22
27
  "webpack-cli": "^4.9.2"
23
28
  },
24
29
  "dependencies": {