@effected/package-json 0.4.2 → 0.5.0

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/License.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Schema } from "effect";
2
- import spdxParse from "spdx-expression-parse";
2
+ import { isValidExpression } from "@effected/spdx";
3
3
 
4
4
  //#region src/License.ts
5
5
  /**
@@ -26,12 +26,7 @@ input: Schema.String }) {
26
26
  const isValidSpdx = (value) => {
27
27
  if (value === "UNLICENSED") return true;
28
28
  if (value.startsWith("SEE LICENSE IN ") && value.length > 15) return true;
29
- try {
30
- spdxParse(value);
31
- return true;
32
- } catch {
33
- return false;
34
- }
29
+ return isValidExpression(value);
35
30
  };
36
31
  /**
37
32
  * A valid SPDX license identifier, expression, `UNLICENSED`, or
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effected/package-json",
3
- "version": "0.4.2",
3
+ "version": "0.5.0",
4
4
  "private": false,
5
5
  "description": "package.json parsing, editing, validation and file IO as Effect schemas.",
6
6
  "keywords": [
@@ -40,7 +40,7 @@
40
40
  "dependencies": {
41
41
  "@effected/npm": "~0.3.0",
42
42
  "@effected/semver": "~0.2.0",
43
- "spdx-expression-parse": "^4.0.0"
43
+ "@effected/spdx": "~0.1.0"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "effect": "4.0.0-beta.99"
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.58.11"
8
+ "packageVersion": "7.58.12"
9
9
  }
10
10
  ]
11
11
  }