@webex/test-helper-make-local-url 2.59.2 → 2.59.3-next.1

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/.eslintrc.js CHANGED
@@ -1,6 +1,6 @@
1
- const config = {
2
- root: true,
3
- extends: ['@webex/eslint-config-legacy'],
4
- };
5
-
6
- module.exports = config;
1
+ const config = {
2
+ root: true,
3
+ extends: ['@webex/eslint-config-legacy'],
4
+ };
5
+
6
+ module.exports = config;
package/README.md CHANGED
@@ -1,31 +1,31 @@
1
- # @webex/test-helper-make-local-url
2
-
3
- [![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)
4
-
5
- >
6
-
7
- - [Install](#install)
8
- - [Usage](#usage)
9
- - [Contribute](#contribute)
10
- - [Maintainers](#maintainers)
11
- - [License](#license)
12
-
13
- ## Install
14
-
15
- ```bash
16
- npm install --save @webex/test-helper-make-local-url
17
- ```
18
-
19
- ## Usage
20
-
21
- ## Maintainers
22
-
23
- This package is maintained by [Cisco Webex for Developers](https://developer.webex.com/).
24
-
25
- ## Contribute
26
-
27
- Pull requests welcome. Please see [CONTRIBUTING.md](https://github.com/webex/webex-js-sdk/blob/master/CONTRIBUTING.md) for more details.
28
-
29
- ## License
30
-
31
- © 2016-2020 Cisco and/or its affiliates. All Rights Reserved.
1
+ # @webex/test-helper-make-local-url
2
+
3
+ [![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)
4
+
5
+ >
6
+
7
+ - [Install](#install)
8
+ - [Usage](#usage)
9
+ - [Contribute](#contribute)
10
+ - [Maintainers](#maintainers)
11
+ - [License](#license)
12
+
13
+ ## Install
14
+
15
+ ```bash
16
+ npm install --save @webex/test-helper-make-local-url
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ ## Maintainers
22
+
23
+ This package is maintained by [Cisco Webex for Developers](https://developer.webex.com/).
24
+
25
+ ## Contribute
26
+
27
+ Pull requests welcome. Please see [CONTRIBUTING.md](https://github.com/webex/webex-js-sdk/blob/master/CONTRIBUTING.md) for more details.
28
+
29
+ ## License
30
+
31
+ © 2016-2020 Cisco and/or its affiliates. All Rights Reserved.
package/babel.config.js CHANGED
@@ -1,3 +1,3 @@
1
- const babelConfigLegacy = require('@webex/babel-config-legacy');
2
-
3
- module.exports = babelConfigLegacy;
1
+ const babelConfigLegacy = require('@webex/babel-config-legacy');
2
+
3
+ module.exports = babelConfigLegacy;
package/dist/index.js CHANGED
@@ -1,15 +1,15 @@
1
1
  "use strict";
2
2
 
3
- /*!
4
- * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
3
+ /*!
4
+ * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
5
5
  */
6
6
 
7
- /**
8
- * Helper for getting a url to localhost
9
- * @param {string} resource
10
- * @param {Object} options
11
- * @param {boolean} options.full if true, will always include protocol and host
12
- * @returns {string}
7
+ /**
8
+ * Helper for getting a url to localhost
9
+ * @param {string} resource
10
+ * @param {Object} options
11
+ * @param {boolean} options.full if true, will always include protocol and host
12
+ * @returns {string}
13
13
  */
14
14
  module.exports = function makeLocalUrl(resource, options) {
15
15
  if (typeof window === 'undefined' || options && options.full) {
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["module","exports","makeLocalUrl","resource","options","window","full","concat","process","env","FIXTURE_PORT"],"sources":["index.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\n/**\n * Helper for getting a url to localhost\n * @param {string} resource\n * @param {Object} options\n * @param {boolean} options.full if true, will always include protocol and host\n * @returns {string}\n */\nmodule.exports = function makeLocalUrl(resource, options) {\n if (typeof window === 'undefined' || (options && options.full)) {\n return `http://localhost:${process.env.FIXTURE_PORT}${resource}`;\n }\n\n return `/fixtures${resource}`;\n};\n"],"mappings":";;AAAA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACAA,MAAM,CAACC,OAAO,GAAG,SAASC,YAAYA,CAACC,QAAQ,EAAEC,OAAO,EAAE;EACxD,IAAI,OAAOC,MAAM,KAAK,WAAW,IAAKD,OAAO,IAAIA,OAAO,CAACE,IAAK,EAAE;IAC9D,2BAAAC,MAAA,CAA2BC,OAAO,CAACC,GAAG,CAACC,YAAY,EAAAH,MAAA,CAAGJ,QAAQ;EAChE;EAEA,mBAAAI,MAAA,CAAmBJ,QAAQ;AAC7B,CAAC"}
1
+ {"version":3,"names":["module","exports","makeLocalUrl","resource","options","window","full","concat","process","env","FIXTURE_PORT"],"sources":["index.js"],"sourcesContent":["/*!\r\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\r\n */\r\n\r\n/**\r\n * Helper for getting a url to localhost\r\n * @param {string} resource\r\n * @param {Object} options\r\n * @param {boolean} options.full if true, will always include protocol and host\r\n * @returns {string}\r\n */\r\nmodule.exports = function makeLocalUrl(resource, options) {\r\n if (typeof window === 'undefined' || (options && options.full)) {\r\n return `http://localhost:${process.env.FIXTURE_PORT}${resource}`;\r\n }\r\n\r\n return `/fixtures${resource}`;\r\n};\r\n"],"mappings":";;AAAA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACAA,MAAM,CAACC,OAAO,GAAG,SAASC,YAAYA,CAACC,QAAQ,EAAEC,OAAO,EAAE;EACxD,IAAI,OAAOC,MAAM,KAAK,WAAW,IAAKD,OAAO,IAAIA,OAAO,CAACE,IAAK,EAAE;IAC9D,2BAAAC,MAAA,CAA2BC,OAAO,CAACC,GAAG,CAACC,YAAY,EAAAH,MAAA,CAAGJ,QAAQ;EAChE;EAEA,mBAAAI,MAAA,CAAmBJ,QAAQ;AAC7B,CAAC"}
package/jest.config.js CHANGED
@@ -1,3 +1,3 @@
1
- const config = require('@webex/jest-config-legacy');
2
-
3
- module.exports = config;
1
+ const config = require('@webex/jest-config-legacy');
2
+
3
+ module.exports = config;
package/package.json CHANGED
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "name": "@webex/test-helper-make-local-url",
3
- "version": "2.59.2",
4
3
  "description": "",
5
4
  "license": "MIT",
6
5
  "main": "dist/index.js",
@@ -20,6 +19,7 @@
20
19
  "scripts": {
21
20
  "build": "yarn build:src",
22
21
  "build:src": "webex-legacy-tools build -dest \"./dist\" -src \"./src\" -js -ts -maps",
22
+ "deploy:npm": "yarn npm publish",
23
23
  "test": "yarn test:style && yarn test:unit && yarn test:integration && yarn test:browser",
24
24
  "test:browser": "webex-legacy-tools test --integration --unit --runner karma",
25
25
  "test:integration": "webex-legacy-tools test --integration --runner mocha",
@@ -28,15 +28,16 @@
28
28
  },
29
29
  "devDependencies": {
30
30
  "@babel/core": "^7.17.10",
31
- "@webex/babel-config-legacy": "2.59.2",
32
- "@webex/eslint-config-legacy": "2.59.2",
33
- "@webex/jest-config-legacy": "2.59.2",
34
- "@webex/legacy-tools": "2.59.2",
35
- "@webex/test-helper-chai": "2.59.2",
36
- "@webex/test-helper-mocha": "2.59.2",
37
- "@webex/test-helper-mock-webex": "2.59.2",
38
- "@webex/test-helper-test-users": "2.59.2",
31
+ "@webex/babel-config-legacy": "^0.0.0",
32
+ "@webex/eslint-config-legacy": "^0.0.0",
33
+ "@webex/jest-config-legacy": "^0.0.0",
34
+ "@webex/legacy-tools": "^0.0.0",
35
+ "@webex/test-helper-chai": "^2.59.3-next.1",
36
+ "@webex/test-helper-mocha": "^2.59.3-next.1",
37
+ "@webex/test-helper-mock-webex": "^2.59.3-next.1",
38
+ "@webex/test-helper-test-users": "^2.59.3-next.1",
39
39
  "eslint": "^8.24.0",
40
40
  "prettier": "^2.7.1"
41
- }
42
- }
41
+ },
42
+ "version": "2.59.3-next.1"
43
+ }
package/process CHANGED
@@ -1 +1 @@
1
- module.exports = {browser: true};
1
+ module.exports = {browser: true};
package/src/index.js CHANGED
@@ -1,18 +1,18 @@
1
- /*!
2
- * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
3
- */
4
-
5
- /**
6
- * Helper for getting a url to localhost
7
- * @param {string} resource
8
- * @param {Object} options
9
- * @param {boolean} options.full if true, will always include protocol and host
10
- * @returns {string}
11
- */
12
- module.exports = function makeLocalUrl(resource, options) {
13
- if (typeof window === 'undefined' || (options && options.full)) {
14
- return `http://localhost:${process.env.FIXTURE_PORT}${resource}`;
15
- }
16
-
17
- return `/fixtures${resource}`;
18
- };
1
+ /*!
2
+ * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
3
+ */
4
+
5
+ /**
6
+ * Helper for getting a url to localhost
7
+ * @param {string} resource
8
+ * @param {Object} options
9
+ * @param {boolean} options.full if true, will always include protocol and host
10
+ * @returns {string}
11
+ */
12
+ module.exports = function makeLocalUrl(resource, options) {
13
+ if (typeof window === 'undefined' || (options && options.full)) {
14
+ return `http://localhost:${process.env.FIXTURE_PORT}${resource}`;
15
+ }
16
+
17
+ return `/fixtures${resource}`;
18
+ };