@newskit-render/api 0.6.0 → 0.10.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.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)
7
+
8
+
9
+ ### Features
10
+
11
+ * **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))
12
+
13
+
14
+
15
+
16
+
17
+ # [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)
18
+
19
+
20
+ ### Features
21
+
22
+ * **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))
23
+
24
+
25
+
26
+
27
+
28
+ # [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)
29
+
30
+
31
+ ### Features
32
+
33
+ * **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))
34
+
35
+
36
+
37
+
38
+
39
+ # [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)
40
+
41
+
42
+ ### Features
43
+
44
+ * **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))
45
+
46
+
47
+
48
+
49
+
6
50
  # [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)
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
- 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.6.0",
3
+ "version": "0.10.0",
4
4
  "description": "helper package for accessing MAIN and NK API data",
5
5
  "author": "",
6
6
  "license": "UNLICENSED",
@@ -16,43 +16,54 @@
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
  },
22
24
  "peerDependencies": {
23
- "@apollo/client": "^3.4.16",
24
- "cookie": "^0.4.1",
25
- "cross-fetch": "^3.1.4",
26
- "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",
27
29
  "react": "17.0.2"
28
30
  },
29
31
  "devDependencies": {
30
- "@apollo/client": "^3.4.16",
31
- "@babel/core": "^7.14.0",
32
- "@babel/polyfill": "^7.10.1",
33
- "@babel/register": "^7.10.1",
34
- "@testing-library/jest-dom": "^5.12.0",
35
- "@testing-library/react": "^11.2.6",
36
- "@types/jest": "^27.0.2",
37
- "@types/react": "^17.0.0",
38
- "@typescript-eslint/eslint-plugin": "^4.9.0",
39
- "@typescript-eslint/parser": "^4.9.0",
40
- "babel-loader": "^8.2.2",
41
- "cookie": "^0.4.1",
42
- "cross-fetch": "^3.1.4",
43
- "eslint": "^7.14.0",
44
- "eslint-config-prettier": "^6.15.0",
45
- "eslint-plugin-prettier": "^3.2.0",
46
- "eslint-plugin-react": "^7.22.0",
47
- "graphql": "^15.6.0",
48
- "jest": "^26.6.3",
49
- "jest-junit": "^12.0.0",
50
- "jest-watch-typeahead": "^0.6.3",
51
- "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",
52
55
  "react": "17.0.2",
53
- "ts-jest": "^26.4.4",
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
  }