Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

slug

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

slug - npm Package Compare versions

Comparing version 5.3.0 to 6.0.0-beta.1

12

CHANGELOG.md

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

# [6.0.0-beta.1](https://github.com/Trott/slug/compare/v5.3.0...v6.0.0-beta.1) (2022-04-19)
### chore
* drop IE11 support ([0907df1](https://github.com/Trott/slug/commit/0907df159048b15c27dc1b4b45a79cfbfb9eaf00))
### BREAKING CHANGES
* drop IE11 support
# [5.3.0](https://github.com/Trott/slug/compare/v5.2.0...v5.3.0) (2022-03-04)

@@ -2,0 +14,0 @@

14

package.json
{
"name": "slug",
"description": "slugifies even utf-8 chars!",
"version": "5.3.0",
"version": "6.0.0-beta.1",
"homepage": "https://github.com/Trott/slug",

@@ -24,3 +24,2 @@ "author": "dodo (https://github.com/dodo)",

"test": "standard && mocha --experimental-modules test/*.mjs && nyc --reporter none mocha test/**/*.js && karma start --single-run --browsers ChromeHeadless,FirefoxHeadless .karma.config.js && nyc report --reporter=text --reporter=html && nyc check-coverage --lines 100 --branches 100 --statements 100 --functions 100",
"test-ie": "karma start --single-run --browsers IE .karma.config.js",
"benchmark": "node benchmark/benchmark.js"

@@ -32,3 +31,3 @@ },

"chai": "^4.2.0",
"karma": "^6.3.15",
"karma": "^6.3.19",
"karma-chai": "^0.1.0",

@@ -38,4 +37,3 @@ "karma-chrome-launcher": "^3.1.0",

"karma-firefox-launcher": "^2.0.0",
"karma-ie-launcher": "^1.0.0",
"karma-jasmine": "^4.0.1",
"karma-jasmine": "^5.0.0",
"karma-mocha": "^2.0.1",

@@ -51,3 +49,7 @@ "mocha": "^9.1.4",

"branches": [
"main"
"main",
{
"name": "beta",
"prerelease": true
}
],

@@ -54,0 +56,0 @@ "plugins": [

@@ -88,33 +88,5 @@ /* global btoa */

// IE11 doesn't have Object.assign(), hence this MDN-supplied polyfill.
/* istanbul ignore if */
if (typeof Object.assign !== 'function') {
// Must be writable: true, enumerable: false, configurable: true
Object.defineProperty(Object, 'assign', {
value: function assign (target, varArgs) { // .length of function is 2
'use strict'
if (target === null || target === undefined) {
throw new TypeError('Cannot convert undefined or null to object')
}
const to = Object(target)
for (let index = 1; index < arguments.length; index++) {
const nextSource = arguments[index]
if (nextSource !== null && nextSource !== undefined) {
// eslint-disable-next-line no-var
for (var nextKey in nextSource) {
// Avoid bugs when hasOwnProperty is shadowed
if (Object.prototype.hasOwnProperty.call(nextSource, nextKey)) {
to[nextKey] = nextSource[nextKey]
}
}
}
}
return to
},
writable: true,
configurable: true
})
throw new Error('Runtime environment does not support Object.assign()')
}

@@ -167,4 +139,3 @@

let lengths = []
// "let" instead of "const" in next line is for IE11 compatibilty
for (let key in opts.multicharmap) { // eslint-disable-line prefer-const
for (const key in opts.multicharmap) {
if (!Object.prototype.hasOwnProperty.call(opts.multicharmap, key)) { continue }

@@ -171,0 +142,0 @@

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