@newskit-render/api 0.5.0 → 0.9.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.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,50 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.9.0](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/api@0.8.0...@newskit-render/api@0.9.0) (2022-01-20)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **PPDSR-543:** Update newskitAPI session ([#564](https://github.com/newscorp-ghfb/ncu-newskit-render/issues/564)) ([1e60be8](https://github.com/newscorp-ghfb/ncu-newskit-render/commit/1e60be84984fc5fa163a9ab2e29d1e6a4eb4a935))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [0.8.0](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/api@0.7.0...@newskit-render/api@0.8.0) (2022-01-14)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Features
|
|
21
|
+
|
|
22
|
+
* **PPDSR-604:** Add husky & commitlint ([#558](https://github.com/newscorp-ghfb/ncu-newskit-render/issues/558)) ([c67fc76](https://github.com/newscorp-ghfb/ncu-newskit-render/commit/c67fc76276c8607f7604ae6ac0d0cae1ecb5b4f0))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# [0.7.0](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/api@0.6.0...@newskit-render/api@0.7.0) (2022-01-13)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
* **PPDSR-632:** Fix newsletter query ([#559](https://github.com/newscorp-ghfb/ncu-newskit-render/issues/559)) ([38085d1](https://github.com/newscorp-ghfb/ncu-newskit-render/commit/38085d1418bb42237a41b4bad0394fc8cabdf2a4))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
# [0.6.0](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/api@0.5.0...@newskit-render/api@0.6.0) (2022-01-05)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Features
|
|
43
|
+
|
|
44
|
+
* **PPDSR-594:** Add themes to account package ([#538](https://github.com/newscorp-ghfb/ncu-newskit-render/issues/538)) ([e34a53a](https://github.com/newscorp-ghfb/ncu-newskit-render/commit/e34a53a944ae8d1420c27459f1ef5ca3ba4160d0))
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
6
50
|
# [0.5.0](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/api@0.4.2...@newskit-render/api@0.5.0) (2021-12-21)
|
|
7
51
|
|
|
8
52
|
|
|
@@ -15,7 +15,8 @@ var getAcsCookie = function (client, cookieSession) {
|
|
|
15
15
|
if (client === types_1.ClientTypes.main) {
|
|
16
16
|
return { Cookie: cookieName + "=" + mainSessionCookie };
|
|
17
17
|
}
|
|
18
|
-
|
|
18
|
+
// We want to send encoded URI to NKAPI
|
|
19
|
+
return encodeURIComponent(mainSessionCookie);
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
return '';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/helpers/session/index.ts"],"names":[],"mappings":";;;;;;AAAA,oDAAwD;AACxD,kDAA2B;AAOpB,IAAM,YAAY,GAAG,UAC1B,MAAmB,EACnB,aAAsB;IAEtB,IAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAA;IAC/C,IAAI,aAAa,EAAE;QACjB,IAAM,OAAO,GAAG,gBAAM,CAAC,KAAK,CAAC,aAAa,CAAC,CAAA;QAC3C,IAAM,iBAAiB,GAAG,OAAO,CAAC,UAAU,CAAC,CAAA;QAC7C,IAAI,iBAAiB,EAAE;YACrB,IAAI,MAAM,KAAK,mBAAW,CAAC,IAAI,EAAE;gBAC/B,OAAO,EAAE,MAAM,EAAK,UAAU,SAAI,iBAAmB,EAAE,CAAA;aACxD;YAED,OAAO,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/helpers/session/index.ts"],"names":[],"mappings":";;;;;;AAAA,oDAAwD;AACxD,kDAA2B;AAOpB,IAAM,YAAY,GAAG,UAC1B,MAAmB,EACnB,aAAsB;IAEtB,IAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAA;IAC/C,IAAI,aAAa,EAAE;QACjB,IAAM,OAAO,GAAG,gBAAM,CAAC,KAAK,CAAC,aAAa,CAAC,CAAA;QAC3C,IAAM,iBAAiB,GAAG,OAAO,CAAC,UAAU,CAAC,CAAA;QAC7C,IAAI,iBAAiB,EAAE;YACrB,IAAI,MAAM,KAAK,mBAAW,CAAC,IAAI,EAAE;gBAC/B,OAAO,EAAE,MAAM,EAAK,UAAU,SAAI,iBAAmB,EAAE,CAAA;aACxD;YAED,uCAAuC;YACvC,OAAO,kBAAkB,CAAC,iBAAiB,CAAC,CAAA;SAC7C;KACF;IACD,OAAO,EAAE,CAAA;AACX,CAAC,CAAA;AAlBY,QAAA,YAAY,gBAkBxB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newskit-render/api",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "helper package for accessing MAIN and NK API data",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
"test:unit": "jest --coverage",
|
|
17
17
|
"lint": "eslint --ext .js,.jsx,.ts,.tsx . --color",
|
|
18
18
|
"lint:fix": "eslint --ext .js,.jsx,.ts,.tsx . --color --fix && prettier --write './**/*.{js,jsx,ts,tsx,json}'",
|
|
19
|
+
"precommit:lint": "eslint",
|
|
20
|
+
"precommit": "lint-staged",
|
|
19
21
|
"clean": "rm -rf node_modules & rm -f package-lock.json & rm -f yarn.lock",
|
|
20
22
|
"test:unit:ci": "JEST_JUNIT_OUTPUT_NAME=checkout.xml jest --ci --coverage --reporters=default --reporters=jest-junit"
|
|
21
23
|
},
|
|
@@ -48,11 +50,20 @@
|
|
|
48
50
|
"jest": "^26.6.3",
|
|
49
51
|
"jest-junit": "^12.0.0",
|
|
50
52
|
"jest-watch-typeahead": "^0.6.3",
|
|
53
|
+
"lint-staged": "^12.1.7",
|
|
51
54
|
"prettier": "^2.2.1",
|
|
52
55
|
"react": "17.0.2",
|
|
53
56
|
"ts-jest": "^26.4.4",
|
|
54
57
|
"typescript": "4.4.3"
|
|
55
58
|
},
|
|
59
|
+
"precommit": [
|
|
60
|
+
"precommit"
|
|
61
|
+
],
|
|
62
|
+
"lint-staged": {
|
|
63
|
+
"**/*.(ts|tsx)": [
|
|
64
|
+
"yarn run precommit:lint"
|
|
65
|
+
]
|
|
66
|
+
},
|
|
56
67
|
"publishConfig": {
|
|
57
68
|
"access": "public"
|
|
58
69
|
}
|