@occultist/occultist 0.0.4 → 0.0.6
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/dist/accept.js +0 -1
- package/dist/actions/actionSets.d.ts +3 -3
- package/dist/actions/actions.d.ts +69 -48
- package/dist/actions/actions.js +39 -4
- package/dist/actions/context.d.ts +15 -11
- package/dist/actions/context.js +5 -0
- package/dist/actions/meta.d.ts +18 -12
- package/dist/actions/meta.js +114 -38
- package/dist/actions/spec.d.ts +3 -3
- package/dist/actions/types.d.ts +45 -16
- package/dist/actions/writer.d.ts +1 -1
- package/dist/actions/writer.test.js +2 -2
- package/dist/cache/cache.d.ts +3 -3
- package/dist/cache/cache.js +111 -42
- package/dist/cache/etag.test.js +1 -1
- package/dist/cache/file.d.ts +33 -1
- package/dist/cache/file.js +92 -10
- package/dist/cache/memory.d.ts +12 -2
- package/dist/cache/memory.js +63 -1
- package/dist/cache/types.d.ts +51 -22
- package/dist/errors.d.ts +1 -1
- package/dist/jsonld.d.ts +1 -1
- package/dist/makeTypeDefs.d.ts +2 -2
- package/dist/mod.d.ts +17 -15
- package/dist/mod.js +17 -15
- package/dist/processAction.d.ts +2 -2
- package/dist/processAction.js +1 -1
- package/dist/registry.d.ts +74 -8
- package/dist/registry.js +70 -8
- package/dist/registry.test.js +1 -1
- package/dist/scopes.d.ts +8 -8
- package/dist/scopes.js +8 -5
- package/dist/utils/contextBuilder.d.ts +1 -1
- package/dist/utils/getActionContext.d.ts +2 -2
- package/dist/utils/getPropertyValueSpecifications.d.ts +1 -1
- package/dist/utils/getRequestBodyValues.d.ts +3 -3
- package/dist/utils/getRequestIRIValues.d.ts +2 -2
- package/dist/utils/isPopulatedObject.js +1 -1
- package/dist/utils/makeAppendProblemDetails.d.ts +1 -1
- package/dist/utils/makeURLPattern.js +1 -0
- package/dist/utils/parseSearchParams.d.ts +2 -2
- package/dist/validators.d.ts +2 -2
- package/dist/validators.js +2 -2
- package/lib/accept.test.ts +1 -1
- package/lib/accept.ts +0 -2
- package/lib/actions/actionSets.ts +4 -4
- package/lib/actions/actions.ts +159 -99
- package/lib/actions/context.ts +22 -10
- package/lib/actions/meta.ts +140 -55
- package/lib/actions/path.test.ts +1 -1
- package/lib/actions/path.ts +1 -1
- package/lib/actions/spec.ts +3 -3
- package/lib/actions/types.ts +60 -15
- package/lib/actions/writer.test.ts +2 -2
- package/lib/actions/writer.ts +1 -1
- package/lib/cache/cache.ts +138 -52
- package/lib/cache/etag.test.ts +1 -1
- package/lib/cache/file.ts +113 -12
- package/lib/cache/memory.ts +85 -3
- package/lib/cache/types.ts +70 -23
- package/lib/errors.ts +1 -1
- package/lib/jsonld.ts +1 -1
- package/lib/makeTypeDefs.ts +5 -5
- package/lib/mod.ts +17 -15
- package/lib/processAction.ts +14 -14
- package/lib/registry.test.ts +1 -1
- package/lib/registry.ts +96 -19
- package/lib/request.ts +1 -1
- package/lib/scopes.test.ts +2 -2
- package/lib/scopes.ts +14 -11
- package/lib/utils/contextBuilder.ts +3 -3
- package/lib/utils/getActionContext.ts +4 -4
- package/lib/utils/getInternalName.ts +1 -1
- package/lib/utils/getPropertyValueSpecifications.ts +4 -4
- package/lib/utils/getRequestBodyValues.ts +5 -5
- package/lib/utils/getRequestIRIValues.ts +4 -4
- package/lib/utils/isPopulatedObject.ts +1 -1
- package/lib/utils/makeAppendProblemDetails.ts +1 -1
- package/lib/utils/makeURLPattern.ts +1 -0
- package/lib/utils/parseSearchParams.ts +2 -2
- package/lib/validators.ts +5 -5
- package/package.json +4 -2
|
@@ -10,6 +10,7 @@ type URLPatternConstructor = new (input: string, baseURL: string) => URLPattern;
|
|
|
10
10
|
export function makeURLPattern(pattern: string, baseURL: string): URLPattern {
|
|
11
11
|
if (typeof URLPattern === 'undefined') {
|
|
12
12
|
const URLPattern = (url as unknown as { URLPattern: URLPatternConstructor }).URLPattern;
|
|
13
|
+
console.log(url.URLPattern);
|
|
13
14
|
|
|
14
15
|
return new URLPattern(pattern, baseURL);
|
|
15
16
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type {ActionSpec, ContextState} from "../actions/spec.
|
|
2
|
-
import type { EmptyObject, JSONObject, JSONValue } from "../jsonld.
|
|
1
|
+
import type {ActionSpec, ContextState} from "../actions/spec.ts";
|
|
2
|
+
import type { EmptyObject, JSONObject, JSONValue } from "../jsonld.ts";
|
|
3
3
|
|
|
4
4
|
export function parseSearchParams<
|
|
5
5
|
ActionState extends ContextState = EmptyObject,
|
package/lib/validators.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type {
|
|
2
2
|
ArraySpec,
|
|
3
3
|
ObjectArraySpec,
|
|
4
4
|
ObjectSpec,
|
|
5
5
|
PropertySpec,
|
|
6
|
-
} from './actions/spec.
|
|
7
|
-
import { isObject } from './utils/isObject.
|
|
8
|
-
import { preferredMediaTypes } from './utils/preferredMediaTypes.
|
|
9
|
-
import { JSONValue } from "./jsonld.
|
|
6
|
+
} from './actions/spec.ts';
|
|
7
|
+
import { isObject } from './utils/isObject.ts';
|
|
8
|
+
import { preferredMediaTypes } from './utils/preferredMediaTypes.ts';
|
|
9
|
+
import type { JSONValue } from "./jsonld.ts";
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
// deno-lint-ignore no-explicit-any
|
package/package.json
CHANGED
|
@@ -28,14 +28,16 @@
|
|
|
28
28
|
"jsonld": "^9.0.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
+
"@types/jsonld": "^1.5.15",
|
|
31
32
|
"@types/node": "^24.10.1",
|
|
32
33
|
"esbuild": "^0.27.0",
|
|
33
34
|
"json-ptr": "^3.1.1",
|
|
34
35
|
"jsonld": "^9.0.0",
|
|
35
36
|
"typescript": "^5.9.3"
|
|
36
37
|
},
|
|
37
|
-
"version": "0.0.
|
|
38
|
+
"version": "0.0.6",
|
|
38
39
|
"scripts": {
|
|
39
|
-
"build": "tsc"
|
|
40
|
+
"build": "tsc -p tsconfig.build.json",
|
|
41
|
+
"test": "node --test"
|
|
40
42
|
}
|
|
41
43
|
}
|