Socket
Socket
Sign inDemoInstall

tiny-cookie

Package Overview
Dependencies
0
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.1 to 2.0.2

21

CHANGELOG.md

@@ -0,1 +1,13 @@

### v2.0.2
2017-08-21
- **Fix**: Fix the es modules build [#16](https://github.com/Alex1990/tiny-cookie/issues/16)
### v2.0.1
2017-07-12
- **Fix**: Fix the "main" entry in package.json [#13](https://github.com/Alex1990/tiny-cookie/issues/13)
### v2.0.0

@@ -7,6 +19,7 @@

- [Breaking change]: Do not support the `Cookie` as a function.
- [Breaking change]: Rename `enabled` method to `isEnabled`.
- [Feature]: Add `getAll` method to get all cookie pairs at a time.
- [Feature]: Add aliases for all methods, for details, you can see [API](https://github.com/Alex1990/tiny-cookie#apis)
- **Breaking change**: Do not support the `Cookie` as a function.
- **Breaking change**: There is not a default export. That is, `import cookie from 'tiny-cookie` doesn't work. The reason why it hasn't a default export is it will prevent the webpack tree-shaking working. You can do it like this `import * as cookie from 'tiny-cookie'`.[#14](https://github.com/Alex1990/tiny-cookie/issues/14)
- **Breaking change**: Rename `enabled` method to `isEnabled`.
- **Feature**: Add `getAll` method to get all cookie pairs at a time.
- **Feature**: Add aliases for all methods, for details, you can see [API](https://github.com/Alex1990/tiny-cookie#apis)
- Add a command to start an http(s) server.

4

lib/index.js
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;
exports.removeCookie = exports.setRawCookie = exports.getRawCookie = exports.setCookie = exports.getAllCookies = exports.getCookie = exports.isCookieEnabled = exports.remove = exports.setRaw = exports.getRaw = exports.set = exports.getAll = exports.get = exports.isEnabled = undefined;

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

'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.__esModule = true;

@@ -7,0 +5,0 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };

{
"name": "tiny-cookie",
"version": "2.0.1",
"version": "2.0.2",
"description": "A tiny cookie manipulation plugin",
"main": "lib/index.js",
"module": "src/index.js",
"module": "es/index.js",
"jsnext:main": "es/index.js",
"files": [

@@ -13,11 +14,12 @@ "dist",

"scripts": {
"clean": "rimraf dist lib coverage",
"start": "babel-node server.js",
"clean": "rimraf dist lib es coverage",
"start": "cross-env BABEL_ENV=commonjs babel-node server.js",
"lint": "eslint src",
"test": "npm run build && karma start",
"test:saucelabs": "npm run build && karma start karma.saucelabs.conf.js",
"build:commonjs": "babel src --out-dir lib",
"build:commonjs": "cross-env BABEL_ENV=commonjs babel src --out-dir lib",
"build:es": "cross-env BABEL_ENV=es babel src --out-dir es",
"build:umd": "cross-env NODE_ENV=development rollup -c -i src/index.js -o dist/tiny-cookie.js",
"build:umd:min": "cross-env NODE_ENV=production rollup -c -i src/index.js -o dist/tiny-cookie.min.js",
"build": "npm run clean && npm run build:commonjs && npm run build:umd && npm run build:umd:min"
"build": "npm run clean && npm run build:commonjs && npm run build:es && npm run build:umd && npm run build:umd:min"
},

@@ -54,3 +56,2 @@ "author": {

"pre-commit": "^1.2.2",
"remove": "^0.1.5",
"rimraf": "^2.6.1",

@@ -57,0 +58,0 @@ "rollup": "^0.43.0",

@@ -10,2 +10,4 @@ # tiny-cookie

**Upgrade from 1.x to 2.x**: You can check the [CHANGELOG.md](https://github.com/Alex1990/tiny-cookie/blob/master/CHANGELOG.md#v200)
## Packages

@@ -12,0 +14,0 @@

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc