dceky 1.0.26 → 1.0.27

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.
@@ -7,7 +7,7 @@ declare global {
7
7
  * @param key the key of the environment variable to retrieve
8
8
  * @return Environment variable from the exposed environment
9
9
  */
10
- getProfileValue(key: string): ObjectLike;
10
+ getProfileValue(key: string): any;
11
11
  }
12
12
  }
13
13
  }
@@ -5,9 +5,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  /* --------------- Command -------------- */
6
6
  /*----------------------------------------*/
7
7
  var getProfileValue = function () {
8
- Cypress.Commands.add('getProfileValue', function (key) {
9
- return Cypress.expose(key);
10
- });
8
+ cy.getProfileValue = Cypress.expose;
11
9
  };
12
10
  /*----------------------------------------*/
13
11
  /* --------------- Export --------------- */
@@ -1 +1 @@
1
- {"version":3,"file":"getProfileValue.js","sourceRoot":"","sources":["../../../src/commands/getProfileValue.ts"],"names":[],"mappings":";AAAA,iCAAiC;;AAsBjC,4CAA4C;AAC5C,4CAA4C;AAC5C,4CAA4C;AAE5C,IAAM,eAAe,GAAG;IACtB,OAAO,CAAC,QAAQ,CAAC,GAAG,CAClB,iBAAiB,EACjB,UAAC,GAAG;QACF,OAAO,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAC7B,CAAC,CACF,CAAC;AACJ,CAAC,CAAC;AAEF,4CAA4C;AAC5C,4CAA4C;AAC5C,4CAA4C;AAE5C,kBAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"getProfileValue.js","sourceRoot":"","sources":["../../../src/commands/getProfileValue.ts"],"names":[],"mappings":";AAAA,iCAAiC;;AAsBjC,4CAA4C;AAC5C,4CAA4C;AAC5C,4CAA4C;AAE5C,IAAM,eAAe,GAAG;IACtB,EAAE,CAAC,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC;AACtC,CAAC,CAAC;AAEF,4CAA4C;AAC5C,4CAA4C;AAC5C,4CAA4C;AAE5C,kBAAe,eAAe,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dceky",
3
- "version": "1.0.26",
3
+ "version": "1.0.27",
4
4
  "description": "Cypress toolkit for Harvard DCE",
5
5
  "main": "./lib/src/index.js",
6
6
  "types": "./lib/src/index.d.ts",
@@ -15,7 +15,7 @@ declare global {
15
15
  */
16
16
  getProfileValue(
17
17
  key: string,
18
- ): ObjectLike;
18
+ ): any;
19
19
  }
20
20
  }
21
21
  }
@@ -25,12 +25,7 @@ declare global {
25
25
  /*----------------------------------------*/
26
26
 
27
27
  const getProfileValue = () => {
28
- Cypress.Commands.add(
29
- 'getProfileValue',
30
- (key) => {
31
- return Cypress.expose(key);
32
- },
33
- );
28
+ cy.getProfileValue = Cypress.expose;
34
29
  };
35
30
 
36
31
  /*----------------------------------------*/