dceky 1.0.3 → 1.0.4-beta.new-divided-export.2

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.
@@ -16,7 +16,7 @@ var genDynamicConfigFile = function () {
16
16
  var dynamicConfigFile = [
17
17
  '// Auto-generated by dceky - do not edit manually',
18
18
  '',
19
- 'import { genConfiguration } from \'dceky\';',
19
+ 'import genConfiguration from \'dceky/genConfiguration\';',
20
20
  '',
21
21
  'export default genConfiguration();',
22
22
  '',
@@ -1 +1 @@
1
- {"version":3,"file":"genDynamicConfigFile.js","sourceRoot":"","sources":["../../setup/genDynamicConfigFile.ts"],"names":[],"mappings":";;;;;AAAA,0CAAoB;AACpB,8CAAwB;AACxB,sEAAgD;AAEhD;;GAEG;AACH,IAAM,oBAAoB,GAAG;IAC3B,IAAM,IAAI,GAAG,IAAA,qBAAW,GAAE,CAAC;IAE3B,IAAM,UAAU,GAAG,cAAI,CAAC,IAAI,CAAC,IAAI,EAAE,mBAAmB,CAAC,CAAC;IAExD,wCAAwC;IACxC,IAAM,iBAAiB,GAAG;QACxB,mDAAmD;QACnD,EAAE;QACF,6CAA6C;QAC7C,EAAE;QACF,oCAAoC;QACpC,EAAE;KACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAEb,wCAAwC;IACxC,YAAE,CAAC,aAAa,CAAC,UAAU,EAAE,iBAAiB,EAAE,MAAM,CAAC,CAAC;IAExD,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC;AAEF,kBAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"genDynamicConfigFile.js","sourceRoot":"","sources":["../../setup/genDynamicConfigFile.ts"],"names":[],"mappings":";;;;;AAAA,0CAAoB;AACpB,8CAAwB;AACxB,sEAAgD;AAEhD;;GAEG;AACH,IAAM,oBAAoB,GAAG;IAC3B,IAAM,IAAI,GAAG,IAAA,qBAAW,GAAE,CAAC;IAE3B,IAAM,UAAU,GAAG,cAAI,CAAC,IAAI,CAAC,IAAI,EAAE,mBAAmB,CAAC,CAAC;IAExD,wCAAwC;IACxC,IAAM,iBAAiB,GAAG;QACxB,mDAAmD;QACnD,EAAE;QACF,0DAA0D;QAC1D,EAAE;QACF,oCAAoC;QACpC,EAAE;KACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAEb,wCAAwC;IACxC,YAAE,CAAC,aAAa,CAAC,UAAU,EAAE,iBAAiB,EAAE,MAAM,CAAC,CAAC;IAExD,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC;AAEF,kBAAe,oBAAoB,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Initialize custom commands
3
+ * @author Gabe Abrams
4
+ */
5
+ declare const commands: () => void;
6
+ export default commands;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ // Import all commands
7
+ var assertDoesNotHaveClass_1 = __importDefault(require("./assertDoesNotHaveClass"));
8
+ var assertHasClass_1 = __importDefault(require("./assertHasClass"));
9
+ var assertNumElements_1 = __importDefault(require("./assertNumElements"));
10
+ var extractDataFromClass_1 = __importDefault(require("./extractDataFromClass"));
11
+ var extractDataFromClassByContents_1 = __importDefault(require("./extractDataFromClassByContents"));
12
+ var getJSON_1 = __importDefault(require("./getJSON"));
13
+ var getNumElements_1 = __importDefault(require("./getNumElements"));
14
+ var handleHarvardKey_1 = __importDefault(require("./handleHarvardKey"));
15
+ var launchAs_1 = __importDefault(require("./launchAs"));
16
+ var launchLTIUsingToken_1 = __importDefault(require("./launchLTIUsingToken"));
17
+ var navigateToHref_1 = __importDefault(require("./navigateToHref"));
18
+ var runScript_1 = __importDefault(require("./runScript"));
19
+ var typeInto_1 = __importDefault(require("./typeInto"));
20
+ var visitCanvasGETEndpoint_1 = __importDefault(require("./visitCanvasGETEndpoint"));
21
+ var waitForElementVisible_1 = __importDefault(require("./waitForElementVisible"));
22
+ /**
23
+ * Initialize custom commands
24
+ * @author Gabe Abrams
25
+ */
26
+ var commands = function () {
27
+ // Execute each command adder
28
+ (0, assertDoesNotHaveClass_1.default)();
29
+ (0, assertHasClass_1.default)();
30
+ (0, assertNumElements_1.default)();
31
+ (0, getNumElements_1.default)();
32
+ (0, handleHarvardKey_1.default)();
33
+ (0, launchAs_1.default)();
34
+ (0, launchLTIUsingToken_1.default)();
35
+ (0, navigateToHref_1.default)();
36
+ (0, runScript_1.default)();
37
+ (0, typeInto_1.default)();
38
+ (0, visitCanvasGETEndpoint_1.default)();
39
+ (0, waitForElementVisible_1.default)();
40
+ (0, extractDataFromClass_1.default)();
41
+ (0, extractDataFromClassByContents_1.default)();
42
+ (0, getJSON_1.default)();
43
+ };
44
+ exports.default = commands;
45
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/index.ts"],"names":[],"mappings":";;;;;AAAA,sBAAsB;AACtB,oFAA8D;AAC9D,oEAA8C;AAC9C,0EAAoD;AACpD,gFAA0D;AAC1D,oGAA8E;AAC9E,sDAAgC;AAChC,oEAA8C;AAC9C,wEAAkD;AAClD,wDAAkC;AAClC,8EAAwD;AACxD,oEAA8C;AAC9C,0DAAoC;AACpC,wDAAkC;AAClC,oFAA8D;AAC9D,kFAA4D;AAE5D;;;GAGG;AACH,IAAM,QAAQ,GAAG;IACf,6BAA6B;IAC7B,IAAA,gCAAsB,GAAE,CAAC;IACzB,IAAA,wBAAc,GAAE,CAAC;IACjB,IAAA,2BAAiB,GAAE,CAAC;IACpB,IAAA,wBAAc,GAAE,CAAC;IACjB,IAAA,0BAAgB,GAAE,CAAC;IACnB,IAAA,kBAAQ,GAAE,CAAC;IACX,IAAA,6BAAmB,GAAE,CAAC;IACtB,IAAA,wBAAc,GAAE,CAAC;IACjB,IAAA,mBAAS,GAAE,CAAC;IACZ,IAAA,kBAAQ,GAAE,CAAC;IACX,IAAA,gCAAsB,GAAE,CAAC;IACzB,IAAA,+BAAqB,GAAE,CAAC;IACxB,IAAA,8BAAoB,GAAE,CAAC;IACvB,IAAA,wCAA8B,GAAE,CAAC;IACjC,IAAA,iBAAO,GAAE,CAAC;AACZ,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
@@ -1,3 +1,6 @@
1
- import init from './init';
2
- import genConfiguration from './genConfiguration';
3
- export { init, genConfiguration, };
1
+ /**
2
+ * Dummy function to make sure this file doesn't get pruned
3
+ * @author Gabe Abrams
4
+ */
5
+ declare const index: () => never;
6
+ export default index;
package/lib/src/index.js CHANGED
@@ -3,14 +3,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.genConfiguration = exports.init = void 0;
7
6
  // Import helpers
8
- var init_1 = __importDefault(require("./init"));
9
- exports.init = init_1.default;
10
- var genConfiguration_1 = __importDefault(require("./genConfiguration"));
11
- exports.genConfiguration = genConfiguration_1.default;
12
- // Automatically initialize upon importing the library, only run in Cypress context
13
- if (typeof Cypress !== 'undefined') {
14
- (0, init_1.default)();
15
- }
7
+ var commands_1 = __importDefault(require("./commands"));
8
+ // Initialize commands upon import
9
+ (0, commands_1.default)();
10
+ /**
11
+ * Dummy function to make sure this file doesn't get pruned
12
+ * @author Gabe Abrams
13
+ */
14
+ var index = function () {
15
+ throw new Error('You don\'t need to call dceky\'s main export. Initialization automatically occurs');
16
+ };
17
+ exports.default = index;
16
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,iBAAiB;AACjB,gDAA0B;AAUxB,eAVK,cAAI,CAUL;AATN,wEAAkD;AAUhD,2BAVK,0BAAgB,CAUL;AARlB,mFAAmF;AACnF,IAAI,OAAO,OAAO,KAAK,WAAW,EAAE,CAAC;IACnC,IAAA,cAAI,GAAE,CAAC;AACT,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;AAAA,iBAAiB;AACjB,wDAAkC;AAElC,kCAAkC;AAClC,IAAA,kBAAQ,GAAE,CAAC;AAEX;;;GAGG;AACH,IAAM,KAAK,GAAG;IACZ,MAAM,IAAI,KAAK,CAAC,mFAAmF,CAAC,CAAC;AACvG,CAAC,CAAC;AAEF,kBAAe,KAAK,CAAC"}
@@ -0,0 +1,2 @@
1
+ import genConfiguration from './genConfiguration';
2
+ export { genConfiguration };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.genConfiguration = void 0;
7
+ // Import helpers
8
+ var genConfiguration_1 = __importDefault(require("./genConfiguration"));
9
+ exports.genConfiguration = genConfiguration_1.default;
10
+ //# sourceMappingURL=node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node.js","sourceRoot":"","sources":["../../src/node.ts"],"names":[],"mappings":";;;;;;AAAA,iBAAiB;AACjB,wEAAkD;AAGzC,2BAHF,0BAAgB,CAGE"}
package/package.json CHANGED
@@ -1,9 +1,19 @@
1
1
  {
2
2
  "name": "dceky",
3
- "version": "1.0.3",
3
+ "version": "1.0.4-beta.new-divided-export.2",
4
4
  "description": "Cypress toolkit for Harvard DCE",
5
5
  "main": "./lib/src/index.js",
6
6
  "types": "./lib/src/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./lib/src/index.d.ts",
10
+ "default": "./lib/src/index.js"
11
+ },
12
+ "./genConfiguration": {
13
+ "types": "./lib/src/genConfiguration/index.d.ts",
14
+ "default": "./lib/src/genConfiguration/index.js"
15
+ }
16
+ },
7
17
  "scripts": {
8
18
  "build": "tsc --project ./tsconfig.json",
9
19
  "ky:start": "npx tsx ./start/index.ts",
@@ -14,7 +14,7 @@ const genDynamicConfigFile = (): string => {
14
14
  const dynamicConfigFile = [
15
15
  '// Auto-generated by dceky - do not edit manually',
16
16
  '',
17
- 'import { genConfiguration } from \'dceky\';',
17
+ 'import genConfiguration from \'dceky/genConfiguration\';',
18
18
  '',
19
19
  'export default genConfiguration();',
20
20
  '',
@@ -0,0 +1,41 @@
1
+ // Import all commands
2
+ import assertDoesNotHaveClass from './assertDoesNotHaveClass';
3
+ import assertHasClass from './assertHasClass';
4
+ import assertNumElements from './assertNumElements';
5
+ import extractDataFromClass from './extractDataFromClass';
6
+ import extractDataFromClassByContents from './extractDataFromClassByContents';
7
+ import getJSON from './getJSON';
8
+ import getNumElements from './getNumElements';
9
+ import handleHarvardKey from './handleHarvardKey';
10
+ import launchAs from './launchAs';
11
+ import launchLTIUsingToken from './launchLTIUsingToken';
12
+ import navigateToHref from './navigateToHref';
13
+ import runScript from './runScript';
14
+ import typeInto from './typeInto';
15
+ import visitCanvasGETEndpoint from './visitCanvasGETEndpoint';
16
+ import waitForElementVisible from './waitForElementVisible';
17
+
18
+ /**
19
+ * Initialize custom commands
20
+ * @author Gabe Abrams
21
+ */
22
+ const commands = () => {
23
+ // Execute each command adder
24
+ assertDoesNotHaveClass();
25
+ assertHasClass();
26
+ assertNumElements();
27
+ getNumElements();
28
+ handleHarvardKey();
29
+ launchAs();
30
+ launchLTIUsingToken();
31
+ navigateToHref();
32
+ runScript();
33
+ typeInto();
34
+ visitCanvasGETEndpoint();
35
+ waitForElementVisible();
36
+ extractDataFromClass();
37
+ extractDataFromClassByContents();
38
+ getJSON();
39
+ };
40
+
41
+ export default commands;
package/src/index.ts CHANGED
@@ -1,14 +1,15 @@
1
1
  // Import helpers
2
- import init from './init';
3
- import genConfiguration from './genConfiguration';
2
+ import commands from './commands';
4
3
 
5
- // Automatically initialize upon importing the library, only run in Cypress context
6
- if (typeof Cypress !== 'undefined') {
7
- init();
8
- }
4
+ // Initialize commands upon import
5
+ commands();
9
6
 
10
- export {
11
- // Helpers
12
- init,
13
- genConfiguration,
7
+ /**
8
+ * Dummy function to make sure this file doesn't get pruned
9
+ * @author Gabe Abrams
10
+ */
11
+ const index = () => {
12
+ throw new Error('You don\'t need to call dceky\'s main export. Initialization automatically occurs');
14
13
  };
14
+
15
+ export default index;
package/src/init.ts DELETED
@@ -1,41 +0,0 @@
1
- // Import all commands
2
- import assertDoesNotHaveClass from './commands/assertDoesNotHaveClass';
3
- import assertHasClass from './commands/assertHasClass';
4
- import assertNumElements from './commands/assertNumElements';
5
- import extractDataFromClass from './commands/extractDataFromClass';
6
- import extractDataFromClassByContents from './commands/extractDataFromClassByContents';
7
- import getJSON from './commands/getJSON';
8
- import getNumElements from './commands/getNumElements';
9
- import handleHarvardKey from './commands/handleHarvardKey';
10
- import launchAs from './commands/launchAs';
11
- import launchLTIUsingToken from './commands/launchLTIUsingToken';
12
- import navigateToHref from './commands/navigateToHref';
13
- import runScript from './commands/runScript';
14
- import typeInto from './commands/typeInto';
15
- import visitCanvasGETEndpoint from './commands/visitCanvasGETEndpoint';
16
- import waitForElementVisible from './commands/waitForElementVisible';
17
-
18
- /**
19
- * Initialize custom commands
20
- * @author Gabe Abrams
21
- */
22
- const init = () => {
23
- // Execute each command adder
24
- assertDoesNotHaveClass();
25
- assertHasClass();
26
- assertNumElements();
27
- getNumElements();
28
- handleHarvardKey();
29
- launchAs();
30
- launchLTIUsingToken();
31
- navigateToHref();
32
- runScript();
33
- typeInto();
34
- visitCanvasGETEndpoint();
35
- waitForElementVisible();
36
- extractDataFromClass();
37
- extractDataFromClassByContents();
38
- getJSON();
39
- };
40
-
41
- export default init;