@ptx-showcase/utils 0.0.1 → 0.0.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.cjs CHANGED
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});function e(e){return`Hello, ${e}!`}exports.hello=e;
package/dist/index.js CHANGED
@@ -1,6 +0,0 @@
1
- //#region src/index.ts
2
- function e(e) {
3
- return `Hello, ${e}!`;
4
- }
5
- //#endregion
6
- export { e as hello };
@@ -0,0 +1,3 @@
1
+ export declare const setCookie: (name: string, value: string, options?: Cookies.CookieAttributes) => void;
2
+ export declare const getCookie: (name: string) => string | undefined;
3
+ export declare const deleteCookie: (name: string, options?: Cookies.CookieAttributes) => void;
@@ -1 +1 @@
1
- export declare function hello(name: string): string;
1
+ export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ptx-showcase/utils",
3
3
  "description": "Shared utilities for PTX Showcase projects",
4
- "version": "0.0.1",
4
+ "version": "0.0.2",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "license": "MIT",
@@ -16,6 +16,11 @@
16
16
  "types": "./dist/index.d.ts",
17
17
  "import": "./dist/index.js",
18
18
  "require": "./dist/index.cjs"
19
+ },
20
+ "./cookie": {
21
+ "types": "./dist/cookie/index.d.ts",
22
+ "import": "./dist/cookie/index.js",
23
+ "require": "./dist/cookie/index.cjs"
19
24
  }
20
25
  },
21
26
  "scripts": {
@@ -27,9 +32,13 @@
27
32
  "access": "public"
28
33
  },
29
34
  "devDependencies": {
35
+ "@types/js-cookie": "^3.0.6",
30
36
  "@types/node": "^25.6.0",
31
37
  "typescript": "~6.0.3",
32
38
  "vite": "^8.0.8",
33
39
  "vite-plugin-dts": "^4.5.4"
40
+ },
41
+ "dependencies": {
42
+ "js-cookie": "^3.0.5"
34
43
  }
35
44
  }