Socket
Socket
Sign inDemoInstall

@baggie/functions

Package Overview
Dependencies
1
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.5.0 to 1.5.1

2

lib/cookie/deleteCookie.d.ts

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

import { CookieAttributes } from "./setCookie";
import { CookieAttributes } from "@baggie/core";
/**

@@ -3,0 +3,0 @@ * Delete a cookie matching a certain name and attributes.

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.deleteCookie = void 0;
const setCookie_1 = require("./setCookie");
const core_1 = require("@baggie/core");
/**

@@ -13,3 +13,3 @@ * Delete a cookie matching a certain name and attributes.

*/
const deleteCookie = (name, attributes = {}) => (0, setCookie_1.setCookie)(name, "", Object.assign(Object.assign({}, attributes), { expires: -1 }));
const deleteCookie = (name, attributes = {}) => (0, core_1.setCookie)(name, "", Object.assign(Object.assign({}, attributes), { expires: -1 }));
exports.deleteCookie = deleteCookie;

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

/* eslint-disable @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types */
const detection_1 = require("@baggie/detection");
const core_1 = require("@baggie/core");
/**

@@ -50,3 +50,3 @@ * **Iterate over just about any iterable object type** - primarily for node lists, arrays and objects, but will also

// we'll iterate through it the old fashioned way.
if (detection_1.isBrowser &&
if (core_1.isBrowser &&
(collection instanceof NodeList || collection instanceof HTMLCollection)) {

@@ -91,3 +91,3 @@ for (let i = 0; i < collection.length; i += 1) {

typeof collection === "object" &&
(!detection_1.isBrowser ||
(!core_1.isBrowser ||
!(collection instanceof Node ||

@@ -94,0 +94,0 @@ collection instanceof Window ||

{
"name": "@baggie/functions",
"version": "1.5.0",
"version": "1.5.1",
"description": "A library of tools for JavaScript and TypeScript. Handle cookies and timers that can be paused and resumed, etc.",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -1,24 +0,5 @@

<img alt="Baggie logo" src="https://github.com/bag-of-tricks/baggie/raw/master/media/baggie.svg" height="100" />
<img alt="Baggie logo" src="https://github.com/bag-of-tricks/baggie/raw/main/public/baggie-title.svg" height="100" />
<h1>@baggie/functions</h1>
Misc. tools from [the little bag-of-tricks](https://github.com/bag-of-tricks/baggie#readme).
Handle cookies and timers that can be paused and resumed, etc.
<hr>
<br>
## 🧾 Documentation
Visit [bag-of-tricks.github.io](https://bag-of-tricks.github.io/) for more complete documentation and examples.
## 🚀 Installation
```bash
#npm
npm install @baggie/functions --save
#yarn
yarn add @baggie/functions
```
⚠️ ☠️ This package has been deprecated in favor of [**@baggie/core**](https://www.npmjs.com/package/@baggie/core)
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