csprefabricate 0.2.0 → 0.2.2

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/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { type ContentSecurityPolicy, Directive } from "types";
2
- import { create } from "utils";
3
- export { create, type Directive, type ContentSecurityPolicy };
1
+ import { ContentSecurityPolicy, Directive } from "./types";
2
+ import { create } from "./utils";
3
+ export { create, Directive, ContentSecurityPolicy };
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { Directive } from "types";
2
- import { create } from "utils";
3
- export { create };
1
+ import { Directive } from "./types";
2
+ import { create } from "./utils";
3
+ export { create, Directive };
package/dist/types.d.ts CHANGED
@@ -55,4 +55,4 @@ interface ContentSecurityPolicy {
55
55
  [Directive.UPGRADE_INSECURE_REQUESTS]?: BlankDirectiveRule;
56
56
  [Directive.BLOCK_ALL_MIXED_CONTENT]?: BlankDirectiveRule;
57
57
  }
58
- export { type ContentSecurityPolicy, type Rules, Directive };
58
+ export { ContentSecurityPolicy, Rules, Directive };
package/dist/utils.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { type ContentSecurityPolicy } from "types";
1
+ import { ContentSecurityPolicy } from "./types";
2
2
  export declare const processRules: (rules: Array<string> | Array<string | Record<string, Array<string>>>) => string;
3
3
  export declare const create: (obj: ContentSecurityPolicy) => string;
package/dist/utils.js CHANGED
@@ -1,5 +1,4 @@
1
- import { formatRule, isValidDirective } from "helpers";
2
- import { Directive } from "types";
1
+ import { formatRule, isValidDirective } from "./helpers";
3
2
  export const processRules = (rules) => {
4
3
  return rules
5
4
  .map((rule) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "csprefabricate",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "packageManager": "yarn@4.5.3",
5
5
  "type": "module",
6
6
  "devDependencies": {