@qikdev/sdk 0.1.190 → 0.1.200

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 (59) hide show
  1. package/dist/main.js +2559 -1
  2. package/package.json +19 -11
  3. package/src/api/qik.access.js +1 -1
  4. package/src/version.js +1 -1
  5. package/.gitlab-ci.yml +0 -24
  6. package/.nvmrc +0 -1
  7. package/dist/main.js.LICENSE.txt +0 -8
  8. package/jsdoc.conf +0 -10
  9. package/test/index.spec.js +0 -41
  10. package/test/mocha.opts +0 -0
  11. /package/{public → dist}/docs/access.html +0 -0
  12. /package/{public → dist}/docs/api.html +0 -0
  13. /package/{public → dist}/docs/auth.html +0 -0
  14. /package/{public → dist}/docs/cache.html +0 -0
  15. /package/{public → dist}/docs/content.html +0 -0
  16. /package/{public → dist}/docs/files.html +0 -0
  17. /package/{public → dist}/docs/filter.html +0 -0
  18. /package/{public → dist}/docs/fonts/Montserrat/Montserrat-Bold.eot +0 -0
  19. /package/{public → dist}/docs/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
  20. /package/{public → dist}/docs/fonts/Montserrat/Montserrat-Bold.woff +0 -0
  21. /package/{public → dist}/docs/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
  22. /package/{public → dist}/docs/fonts/Montserrat/Montserrat-Regular.eot +0 -0
  23. /package/{public → dist}/docs/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
  24. /package/{public → dist}/docs/fonts/Montserrat/Montserrat-Regular.woff +0 -0
  25. /package/{public → dist}/docs/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
  26. /package/{public → dist}/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
  27. /package/{public → dist}/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +0 -0
  28. /package/{public → dist}/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
  29. /package/{public → dist}/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
  30. /package/{public → dist}/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
  31. /package/{public → dist}/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
  32. /package/{public → dist}/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +0 -0
  33. /package/{public → dist}/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
  34. /package/{public → dist}/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
  35. /package/{public → dist}/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
  36. /package/{public → dist}/docs/index.html +0 -0
  37. /package/{public → dist}/docs/qik.access.js.html +0 -0
  38. /package/{public → dist}/docs/qik.api.js.html +0 -0
  39. /package/{public → dist}/docs/qik.auth.js.html +0 -0
  40. /package/{public → dist}/docs/qik.cache.js.html +0 -0
  41. /package/{public → dist}/docs/qik.content.js.html +0 -0
  42. /package/{public → dist}/docs/qik.core.js.html +0 -0
  43. /package/{public → dist}/docs/qik.files.js.html +0 -0
  44. /package/{public → dist}/docs/qik.filter.js.html +0 -0
  45. /package/{public → dist}/docs/qik.socket.js.html +0 -0
  46. /package/{public → dist}/docs/qik.system.js.html +0 -0
  47. /package/{public → dist}/docs/qik.utils.js.html +0 -0
  48. /package/{public → dist}/docs/scripts/collapse.js +0 -0
  49. /package/{public → dist}/docs/scripts/linenumber.js +0 -0
  50. /package/{public → dist}/docs/scripts/nav.js +0 -0
  51. /package/{public → dist}/docs/scripts/polyfill.js +0 -0
  52. /package/{public → dist}/docs/scripts/prettify/Apache-License-2.0.txt +0 -0
  53. /package/{public → dist}/docs/scripts/prettify/lang-css.js +0 -0
  54. /package/{public → dist}/docs/scripts/prettify/prettify.js +0 -0
  55. /package/{public → dist}/docs/scripts/search.js +0 -0
  56. /package/{public → dist}/docs/socket.html +0 -0
  57. /package/{public → dist}/docs/styles/jsdoc.css +0 -0
  58. /package/{public → dist}/docs/styles/prettify.css +0 -0
  59. /package/{public → dist}/docs/system.html +0 -0
package/package.json CHANGED
@@ -1,16 +1,27 @@
1
1
  {
2
2
  "name": "@qikdev/sdk",
3
- "version": "0.1.190",
3
+ "version": "0.1.200",
4
4
  "type": "module",
5
5
  "description": "Promise based Javascript SDK",
6
+ "main": "./dist/main.js",
7
+ "module": "./dist/main.js",
6
8
  "scripts": {
7
- "build": "webpack --mode=production && npm run test",
8
- "dev": "webpack --mode=development --progress --colors --watch",
9
+ "build": "vite build && yarn test",
10
+ "dev": "vite build --watch",
9
11
  "test": "mocha --colors ./test/*.spec.js",
10
12
  "test:watch": "mocha --colors -w ./test/*.spec.js",
11
13
  "document": "jsdoc -r . -d public/docs -c jsdoc.conf README.md"
12
14
  },
13
- "exports": "./src/index.js",
15
+ "exports": {
16
+ ".": {
17
+ "import": "./dist/main.js",
18
+ "default": "./dist/main.js"
19
+ }
20
+ },
21
+ "files": [
22
+ "dist",
23
+ "src"
24
+ ],
14
25
  "homepage": "https://qik.dev",
15
26
  "bugs": {
16
27
  "url": "https://support.qik.dev"
@@ -27,24 +38,21 @@
27
38
  "author": "qik.dev",
28
39
  "license": "ISC",
29
40
  "devDependencies": {
30
- "babel-preset-env": "^1.7.0",
31
- "babel-register": "^6.26.0",
32
41
  "chai": "^4.2.0",
33
42
  "docdash": "^1.1.1",
43
+ "eslint": "^8.40.0",
34
44
  "jsdoc": "^3.6.3",
35
45
  "jsdom": "^14.1.0",
36
46
  "mocha": "^9.2.0",
37
- "webpack": "^5.68.0",
38
- "webpack-cli": "^4.9.2",
39
- "eslint": "^8.40.0"
47
+ "vite": "^7.2.2"
40
48
  },
41
49
  "dependencies": {
42
50
  "axios": "^0.19.2",
43
51
  "axios-extensions": "^3.1.2",
44
52
  "browser-or-node": "^2.0.0",
45
- "qs": "^6.10.5",
53
+ "lodash.camelcase": "^4.3.0",
46
54
  "lodash.get": "^4.4.2",
47
- "lodash.camelcase": "^4.3.0"
55
+ "qs": "^6.10.5"
48
56
  },
49
57
  "directories": {
50
58
  "test": "test"
@@ -344,7 +344,7 @@ var QikAccess = function (QikCore) {
344
344
  */
345
345
  service.isAssignee = function (user, contentItem) {
346
346
  // Check the user profile ids
347
- const profileIDs = QikCore.utils.ids(user.profiles);
347
+ const profileIDs = QikCore.utils.ids(user?.profiles);
348
348
  if (!profileIDs.length) {
349
349
  return false;
350
350
  }
package/src/version.js CHANGED
@@ -1 +1 @@
1
- export const version = "0.1.190";
1
+ export const version = "0.1.200";
package/.gitlab-ci.yml DELETED
@@ -1,24 +0,0 @@
1
- # You can override the included template(s) by including variable overrides
2
- # SAST customization: https://docs.gitlab.com/ee/user/application_security/sast/#customizing-the-sast-settings
3
- # Secret Detection customization: https://docs.gitlab.com/ee/user/application_security/secret_detection/#customizing-settings
4
- # Dependency Scanning customization: https://docs.gitlab.com/ee/user/application_security/dependency_scanning/#customizing-the-dependency-scanning-settings
5
- # Container Scanning customization: https://docs.gitlab.com/ee/user/application_security/container_scanning/#customizing-the-container-scanning-settings
6
- # Note that environment variables can be set in several places
7
- # See https://docs.gitlab.com/ee/ci/variables/#cicd-variable-precedence
8
- # Pages
9
- stages:
10
- - test
11
- sast:
12
- stage: test
13
- include:
14
- - template: Security/SAST.gitlab-ci.yml
15
- pages:
16
- script:
17
- - mkdir .public
18
- - cp -r * .public
19
- - mv .public public
20
- artifacts:
21
- paths:
22
- - public
23
- only:
24
- - master
package/.nvmrc DELETED
@@ -1 +0,0 @@
1
- 20
@@ -1,8 +0,0 @@
1
- /**
2
- * @license
3
- * Lodash <https://lodash.com/>
4
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
5
- * Released under MIT license <https://lodash.com/license>
6
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
7
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
8
- */
package/jsdoc.conf DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "source": {
3
- "exclude": [
4
- "node_modules"
5
- ]
6
- },
7
- "opts": {
8
- "template": "node_modules/docdash"
9
- }
10
- }
@@ -1,41 +0,0 @@
1
- // // /* global describe, it, before */
2
-
3
- // import chai from 'chai';
4
- import Qik from '../src/index.js';
5
-
6
-
7
- var qik = new Qik();
8
-
9
- var {data} = await qik.api.get(`/version`);
10
-
11
-
12
-
13
-
14
-
15
- // chai.expect();
16
-
17
- // const expect = chai.expect;
18
-
19
- // let qik;
20
-
21
- // describe('Load Qik Core', () => {
22
- // before(() => {
23
- // qik = new QikCore();
24
- // });
25
- // describe('When i try and start Qik', () => {
26
- // it('It should return a Qik instance', () => {
27
- // expect(qik.auth);//.to.be.equal('Cat');
28
- // });
29
- // });
30
- // });
31
-
32
- // // describe('Given an instance of my Dog library', () => {
33
- // // before(() => {
34
- // // lib = new Dog();
35
- // // });
36
- // // describe('when I need the name', () => {
37
- // // it('should return the name', () => {
38
- // // expect(lib.name).to.be.equal('Dog');
39
- // // });
40
- // // });
41
- // // });
package/test/mocha.opts DELETED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes