@newskit-render/api 0.8.0 → 0.11.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,47 @@
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.11.0](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/api@0.10.1...@newskit-render/api@0.11.0) (2022-02-01)
7
+
8
+
9
+ ### Features
10
+
11
+ * **PPDSR-614:** Render demo site - theming dropdown ([#578](https://github.com/newscorp-ghfb/ncu-newskit-render/issues/578)) ([b190144](https://github.com/newscorp-ghfb/ncu-newskit-render/commit/b190144289bf84f2c445fbf6fc57c3583e593259))
12
+
13
+
14
+
15
+
16
+
17
+ ## [0.10.1](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/api@0.10.0...@newskit-render/api@0.10.1) (2022-01-27)
18
+
19
+ **Note:** Version bump only for package @newskit-render/api
20
+
21
+
22
+
23
+
24
+
25
+ # [0.10.0](https://github.com/newscorp-ghfb/ncu-newskit-render/compare/@newskit-render/api@0.9.0...@newskit-render/api@0.10.0) (2022-01-25)
26
+
27
+
28
+ ### Features
29
+
30
+ * **PPDSR-566:** remove carrot from dependencies ([#572](https://github.com/newscorp-ghfb/ncu-newskit-render/issues/572)) ([a00f25a](https://github.com/newscorp-ghfb/ncu-newskit-render/commit/a00f25a871f023b6008fe06a1391e83328d3ad58))
31
+
32
+
33
+
34
+
35
+
36
+ # [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)
37
+
38
+
39
+ ### Features
40
+
41
+ * **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))
42
+
43
+
44
+
45
+
46
+
6
47
  # [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)
7
48
 
8
49
 
@@ -72,7 +72,7 @@ var createClient = function (_a) {
72
72
  return [2 /*return*/, new client_1.ApolloClient({
73
73
  ssrMode: true,
74
74
  link: linkObject,
75
- name: name || process.env.PUBLISHER || 'ncu-newskit-render',
75
+ name: name || 'ncu-newskit-render',
76
76
  version: '0.1.0',
77
77
  cache: new client_1.InMemoryCache({ addTypename: addTypename }).restore(initialState),
78
78
  })];
@@ -1 +1 @@
1
- {"version":3,"file":"createClient.js","sourceRoot":"","sources":["../../src/apolloClient/createClient.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAKuB;AACvB,4DAA+B;AAIxB,IAAM,YAAY,GAAG,UAAO,EAOpB;QANb,oBAAiB,EAAjB,YAAY,mBAAG,EAAE,KAAA,EACjB,OAAO,aAAA,EACP,GAAG,SAAA,EACH,mBAAkB,EAAlB,WAAW,mBAAG,IAAI,KAAA,EAClB,KAAK,WAAA,EACL,IAAI,UAAA;;;;YAEE,UAAU,GAAG,KAAK;gBACtB,CAAC,CAAC,IAAA,aAAI,kCACC,KAAK;oBACR,IAAA,uBAAc,EAAC;wBACb,GAAG,KAAA;wBACH,OAAO,SAAA;wBACP,KAAK,uBAAA;qBACN,CAAC;0BACF;gBACJ,CAAC,CAAC,IAAA,uBAAc,EAAC;oBACb,GAAG,KAAA;oBACH,OAAO,SAAA;oBACP,KAAK,uBAAA;iBACN,CAAC,CAAA;YACN,sBAAO,IAAI,qBAAY,CAAC;oBACtB,OAAO,EAAE,IAAI;oBACb,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,IAAI,IAAI,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,oBAAoB;oBAC3D,OAAO,EAAE,OAAO;oBAChB,KAAK,EAAE,IAAI,sBAAa,CAAC,EAAE,WAAW,aAAA,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC;iBAChE,CAAC,EAAA;;;CACH,CAAA;AA7BY,QAAA,YAAY,gBA6BxB"}
1
+ {"version":3,"file":"createClient.js","sourceRoot":"","sources":["../../src/apolloClient/createClient.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAKuB;AACvB,4DAA+B;AAIxB,IAAM,YAAY,GAAG,UAAO,EAOpB;QANb,oBAAiB,EAAjB,YAAY,mBAAG,EAAE,KAAA,EACjB,OAAO,aAAA,EACP,GAAG,SAAA,EACH,mBAAkB,EAAlB,WAAW,mBAAG,IAAI,KAAA,EAClB,KAAK,WAAA,EACL,IAAI,UAAA;;;;YAEE,UAAU,GAAG,KAAK;gBACtB,CAAC,CAAC,IAAA,aAAI,kCACC,KAAK;oBACR,IAAA,uBAAc,EAAC;wBACb,GAAG,KAAA;wBACH,OAAO,SAAA;wBACP,KAAK,uBAAA;qBACN,CAAC;0BACF;gBACJ,CAAC,CAAC,IAAA,uBAAc,EAAC;oBACb,GAAG,KAAA;oBACH,OAAO,SAAA;oBACP,KAAK,uBAAA;iBACN,CAAC,CAAA;YACN,sBAAO,IAAI,qBAAY,CAAC;oBACtB,OAAO,EAAE,IAAI;oBACb,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,IAAI,IAAI,oBAAoB;oBAClC,OAAO,EAAE,OAAO;oBAChB,KAAK,EAAE,IAAI,sBAAa,CAAC,EAAE,WAAW,aAAA,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC;iBAChE,CAAC,EAAA;;;CACH,CAAA;AA7BY,QAAA,YAAY,gBA6BxB"}
@@ -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
- return mainSessionCookie;
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;SACzB;KACF;IACD,OAAO,EAAE,CAAA;AACX,CAAC,CAAA;AAjBY,QAAA,YAAY,gBAiBxB"}
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.8.0",
3
+ "version": "0.11.0",
4
4
  "description": "helper package for accessing MAIN and NK API data",
5
5
  "author": "",
6
6
  "license": "UNLICENSED",
@@ -22,38 +22,38 @@
22
22
  "test:unit:ci": "JEST_JUNIT_OUTPUT_NAME=checkout.xml jest --ci --coverage --reporters=default --reporters=jest-junit"
23
23
  },
24
24
  "peerDependencies": {
25
- "@apollo/client": "^3.4.16",
26
- "cookie": "^0.4.1",
27
- "cross-fetch": "^3.1.4",
28
- "graphql": "^15.6.0",
25
+ "@apollo/client": "3.4.16",
26
+ "cookie": "0.4.1",
27
+ "cross-fetch": "3.1.4",
28
+ "graphql": "15.6.0",
29
29
  "react": "17.0.2"
30
30
  },
31
31
  "devDependencies": {
32
- "@apollo/client": "^3.4.16",
33
- "@babel/core": "^7.14.0",
34
- "@babel/polyfill": "^7.10.1",
35
- "@babel/register": "^7.10.1",
36
- "@testing-library/jest-dom": "^5.12.0",
37
- "@testing-library/react": "^11.2.6",
38
- "@types/jest": "^27.0.2",
39
- "@types/react": "^17.0.0",
40
- "@typescript-eslint/eslint-plugin": "^4.9.0",
41
- "@typescript-eslint/parser": "^4.9.0",
42
- "babel-loader": "^8.2.2",
43
- "cookie": "^0.4.1",
44
- "cross-fetch": "^3.1.4",
45
- "eslint": "^7.14.0",
46
- "eslint-config-prettier": "^6.15.0",
47
- "eslint-plugin-prettier": "^3.2.0",
48
- "eslint-plugin-react": "^7.22.0",
49
- "graphql": "^15.6.0",
50
- "jest": "^26.6.3",
51
- "jest-junit": "^12.0.0",
52
- "jest-watch-typeahead": "^0.6.3",
53
- "lint-staged": "^12.1.7",
54
- "prettier": "^2.2.1",
32
+ "@apollo/client": "3.4.16",
33
+ "@babel/core": "7.14.0",
34
+ "@babel/polyfill": "7.10.1",
35
+ "@babel/register": "7.10.1",
36
+ "@testing-library/jest-dom": "5.12.0",
37
+ "@testing-library/react": "11.2.6",
38
+ "@types/jest": "27.0.2",
39
+ "@types/react": "17.0.0",
40
+ "@typescript-eslint/eslint-plugin": "4.9.0",
41
+ "@typescript-eslint/parser": "4.9.0",
42
+ "babel-loader": "8.2.2",
43
+ "cookie": "0.4.1",
44
+ "cross-fetch": "3.1.4",
45
+ "eslint": "7.14.0",
46
+ "eslint-config-prettier": "6.15.0",
47
+ "eslint-plugin-prettier": "3.2.0",
48
+ "eslint-plugin-react": "7.22.0",
49
+ "graphql": "15.6.0",
50
+ "jest": "26.6.3",
51
+ "jest-junit": "12.0.0",
52
+ "jest-watch-typeahead": "0.6.3",
53
+ "lint-staged": "12.1.7",
54
+ "prettier": "2.2.1",
55
55
  "react": "17.0.2",
56
- "ts-jest": "^26.4.4",
56
+ "ts-jest": "26.4.4",
57
57
  "typescript": "4.4.3"
58
58
  },
59
59
  "precommit": [