New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ckies/library

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ckies/library - npm Package Compare versions

Comparing version 0.0.6 to 0.1.0

dist/ckies.min.js

2

dist/index.d.ts
export { Cookie } from './lib/Cookie';
export { CKies, CookieOptions, CookieType } from './lib/CKies';
export { CKies as ckies, CookieOptions, CookieType } from './lib/CKies';

@@ -6,5 +6,5 @@ "use strict";

var CKies_1 = require("./lib/CKies");
exports.CKies = CKies_1.CKies;
exports.ckies = CKies_1.CKies;
exports.CookieOptions = CKies_1.CookieOptions;
exports.CookieType = CKies_1.CookieType;
//# sourceMappingURL=index.js.map

@@ -10,3 +10,5 @@ {

"lint": "tslint src/**/*.ts",
"build": "tsc"
"build": "yarn build:library; yarn build:browser",
"build:library": "tsc",
"build:browser": "webpack"
},

@@ -17,4 +19,12 @@ "repository": {

},
"keywords": [],
"author": "Cookies.WTF <mail@cookies.wtf>",
"keywords": [
"cookies",
"gdpr",
"privacy",
"builder",
"policy",
"settings",
"browser"
],
"author": "Sebastian Müller <code@sbstjn.com>",
"license": "MIT",

@@ -31,4 +41,7 @@ "bugs": {

"ts-jest": "^22.4.4",
"ts-loader": "^4.3.0",
"tslint": "^5.10.0",
"typescript": "^2.8.3"
"typescript": "^2.8.3",
"webpack": "^4.8.3",
"webpack-cli": "^2.1.3"
},

@@ -49,3 +62,3 @@ "jest": {

},
"version": "0.0.6"
"version": "0.1.0"
}

@@ -1,1 +0,27 @@

# Library
# Library
Approach to offer a generic tooling for GDPR-compliant cookie handling. Use `@ckies/library` in your JavaScript or TypeScript projects, or use it as a drop-in solution for static projects.
## Usage
### Custom Build Process
```javascript
import { ckies } from '@ckies/library'
if (ckies.useMarketing()) {
console.log('Marketing cookies are allowed!')
}
```
### Hosted Library
```html
<script src="ckies.min.js"></script>
<script>
if (ckies.useMarketing()) {
console.log('Marketing cookies are allowed!')
}
</script>
```

@@ -1,7 +0,5 @@

import {
CKies,
CONFIG_EXPIRATION,
CookieType
} from '../../src/lib/CKies'
import { ckies as CKies, CookieType } from '../../src'
import { CONFIG_EXPIRATION } from '../../src/lib/CKies'
describe('CKies', () => {

@@ -8,0 +6,0 @@ describe('CONFIGE_EXPIRATION', () => {

@@ -1,2 +0,2 @@

import { Cookie } from '../../src/lib/Cookie'
import { Cookie } from '../../src'

@@ -3,0 +3,0 @@ describe('Cookie', () => {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc