@rushstack/package-extractor 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.
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.34.5"
8
+ "packageVersion": "7.34.6"
9
9
  }
10
10
  ]
11
11
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Utils.d.ts","sourceRoot":"","sources":["../src/Utils.ts"],"names":[],"mappings":"AAIA,wBAAgB,eAAe,CAAC,eAAe,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAY/E"}
1
+ {"version":3,"file":"Utils.d.ts","sourceRoot":"","sources":["../src/Utils.ts"],"names":[],"mappings":"AAEA,wBAAgB,eAAe,CAAC,eAAe,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAY/E"}
package/lib/Utils.js CHANGED
@@ -1,15 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.matchesWithStar = void 0;
4
- function escapeRegExp(literal) {
5
- return literal.replace(/[^A-Za-z0-9_]/g, '\\$&');
6
- }
4
+ const node_core_library_1 = require("@rushstack/node-core-library");
7
5
  function matchesWithStar(patternWithStar, input) {
8
6
  // Map "@types/*" --> "^\@types\/.*$"
9
7
  const pattern = '^' +
10
8
  patternWithStar
11
9
  .split('*')
12
- .map((x) => escapeRegExp(x))
10
+ .map((x) => node_core_library_1.Text.escapeRegExp(x))
13
11
  .join('.*') +
14
12
  '$';
15
13
  // eslint-disable-next-line @rushstack/security/no-unsafe-regexp
package/lib/Utils.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Utils.js","sourceRoot":"","sources":["../src/Utils.ts"],"names":[],"mappings":";;;AAAA,SAAS,YAAY,CAAC,OAAe;IACnC,OAAO,OAAO,CAAC,OAAO,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC;AACnD,CAAC;AAED,SAAgB,eAAe,CAAC,eAAuB,EAAE,KAAa;IACpE,qCAAqC;IACrC,MAAM,OAAO,GACX,GAAG;QACH,eAAe;aACZ,KAAK,CAAC,GAAG,CAAC;aACV,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;aAC3B,IAAI,CAAC,IAAI,CAAC;QACb,GAAG,CAAC;IACN,gEAAgE;IAChE,MAAM,MAAM,GAAW,IAAI,MAAM,CAAC,OAAO,CAAC,CAAC;IAC3C,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC5B,CAAC;AAZD,0CAYC","sourcesContent":["function escapeRegExp(literal: string): string {\n return literal.replace(/[^A-Za-z0-9_]/g, '\\\\$&');\n}\n\nexport function matchesWithStar(patternWithStar: string, input: string): boolean {\n // Map \"@types/*\" --> \"^\\@types\\/.*$\"\n const pattern: string =\n '^' +\n patternWithStar\n .split('*')\n .map((x) => escapeRegExp(x))\n .join('.*') +\n '$';\n // eslint-disable-next-line @rushstack/security/no-unsafe-regexp\n const regExp: RegExp = new RegExp(pattern);\n return regExp.test(input);\n}\n"]}
1
+ {"version":3,"file":"Utils.js","sourceRoot":"","sources":["../src/Utils.ts"],"names":[],"mappings":";;;AAAA,oEAAoD;AAEpD,SAAgB,eAAe,CAAC,eAAuB,EAAE,KAAa;IACpE,qCAAqC;IACrC,MAAM,OAAO,GACX,GAAG;QACH,eAAe;aACZ,KAAK,CAAC,GAAG,CAAC;aACV,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,wBAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;aAChC,IAAI,CAAC,IAAI,CAAC;QACb,GAAG,CAAC;IACN,gEAAgE;IAChE,MAAM,MAAM,GAAW,IAAI,MAAM,CAAC,OAAO,CAAC,CAAC;IAC3C,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC5B,CAAC;AAZD,0CAYC","sourcesContent":["import { Text } from '@rushstack/node-core-library';\n\nexport function matchesWithStar(patternWithStar: string, input: string): boolean {\n // Map \"@types/*\" --> \"^\\@types\\/.*$\"\n const pattern: string =\n '^' +\n patternWithStar\n .split('*')\n .map((x) => Text.escapeRegExp(x))\n .join('.*') +\n '$';\n // eslint-disable-next-line @rushstack/security/no-unsafe-regexp\n const regExp: RegExp = new RegExp(pattern);\n return regExp.test(input);\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rushstack/package-extractor",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "A library for bundling selected files and dependencies into a deployable package.",
5
5
  "main": "lib/index.js",
6
6
  "typings": "dist/package-extractor.d.ts",
@@ -15,8 +15,8 @@
15
15
  "ignore": "~5.1.6",
16
16
  "jszip": "~3.8.0",
17
17
  "npm-packlist": "~2.1.2",
18
- "@rushstack/node-core-library": "3.57.0",
19
- "@rushstack/terminal": "0.5.6"
18
+ "@rushstack/node-core-library": "3.58.0",
19
+ "@rushstack/terminal": "0.5.7"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/glob": "7.1.1",
@@ -25,8 +25,8 @@
25
25
  "@types/npm-packlist": "~1.1.1",
26
26
  "eslint": "~8.7.0",
27
27
  "@rushstack/eslint-config": "3.2.0",
28
- "@rushstack/heft-node-rig": "1.12.8",
29
- "@rushstack/heft": "0.50.2"
28
+ "@rushstack/heft-node-rig": "1.12.9",
29
+ "@rushstack/heft": "0.50.3"
30
30
  },
31
31
  "scripts": {
32
32
  "build": "heft build --clean",