@owservable/actions 0.1.2 → 0.1.3

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/README.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  # @owservable/actions
4
4
 
5
+ ## TypeDoc Documentation
6
+
7
+ See the <a href="https://owservable.github.io/actions/docs/" target="_blank">TypeDoc documentation</a>.
8
+
9
+ ## Test Coverage
10
+
11
+ See the <a href="https://owservable.github.io/actions/coverage/" target="_blank">Test coverage</a>.
12
+
5
13
  - functions
6
14
  - findAction
7
15
  - runActionAsCommand
@@ -3,10 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getOptionAndDefaultValue = void 0;
4
4
  const getOptionAndDefaultValue = (config) => {
5
5
  let defaultValue;
6
- let option = config.substring(1).substring(-1).slice(0, -1);
6
+ let option = config.substring(1).substring(-1).slice(0, -1).trim();
7
7
  if (option.indexOf('=') >= 0) {
8
- defaultValue = option.substring(option.indexOf('=') + 1).slice(0, -1);
9
- option = option.replace('=' + defaultValue, '');
8
+ defaultValue = option.substring(option.indexOf('=') + 1).trim();
9
+ option = option.replace('=' + defaultValue, '').trim();
10
10
  }
11
11
  return { option, defaultValue };
12
12
  };
@@ -1 +1 @@
1
- {"version":3,"file":"get.option.and.default.value.js","sourceRoot":"","sources":["../../src/functions/get.option.and.default.value.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;AAEN,MAAM,wBAAwB,GAAG,CAAC,MAAc,EAA0C,EAAE;IAClG,IAAI,YAAY,CAAC;IACjB,IAAI,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAG5D,IAAI,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;QAC7B,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;QACtE,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,GAAG,YAAY,EAAE,EAAE,CAAC,CAAC;KAChD;IAED,OAAO,EAAC,MAAM,EAAE,YAAY,EAAC,CAAC;AAC/B,CAAC,CAAC;AAXW,QAAA,wBAAwB,4BAWnC;AACF,kBAAe,gCAAwB,CAAC"}
1
+ {"version":3,"file":"get.option.and.default.value.js","sourceRoot":"","sources":["../../src/functions/get.option.and.default.value.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;AAEN,MAAM,wBAAwB,GAAG,CAAC,MAAc,EAA0C,EAAE;IAClG,IAAI,YAAY,CAAC;IACjB,IAAI,MAAM,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAGnE,IAAI,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;QAC7B,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;QAChE,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,GAAG,YAAY,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;KACvD;IAED,OAAO,EAAC,MAAM,EAAE,YAAY,EAAC,CAAC;AAC/B,CAAC,CAAC;AAXW,QAAA,wBAAwB,4BAWnC;AACF,kBAAe,gCAAwB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owservable/actions",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "list subfolders by name",
5
5
  "engines": {
6
6
  "node": ">=16"
@@ -17,7 +17,7 @@
17
17
  "url": "git+https://github.com/owservable/actions.git"
18
18
  },
19
19
  "scripts": {
20
- "all": "pnpm i & tsc & pnpm clean & pnpm build & pnpm test & pnpm test_qube & pnpm docs",
20
+ "all": "pnpm i & tsc & pnpm clean & pnpm build & pnpm test & pnpm test_qube & pnpm docs & skeletest & strictr",
21
21
  "build": "del /S /Q lib\\* && tsc",
22
22
  "build:watch": "tsc --watch",
23
23
  "lint": "tslint -p tsconfig.json",
@@ -50,8 +50,10 @@
50
50
  "mocha": "^10.2.0",
51
51
  "nyc": "^15.1.0",
52
52
  "prettier": "^2.8.8",
53
+ "skeletest": "^0.4.4",
53
54
  "sonarjs": "^1.0.0",
54
55
  "source-map-support": "^0.5.21",
56
+ "strictr": "^0.2.3",
55
57
  "ts-node": "^10.9.1",
56
58
  "tslint": "^6.1.3",
57
59
  "tslint-config-prettier": "^1.18.0",