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

fellow

Package Overview
Dependencies
Maintainers
1
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fellow - npm Package Compare versions

Comparing version 7.3.0 to 7.4.0-next.1704671471.45861038d412e1c13120a7ee6bd06be40406bfc1

34

edition-browsers/index.js
// external
import { a, ma } from '@bevry/render';
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Collator/Collator
const { compare: intlCompare } = new Intl.Collator('en', {
numeric: true,
// sensitivity: 'base',
ignorePunctuation: true,
});
/** Comparator for sorting alphanumeric strings, with support for accents */
export function compare(a, b) {
return intlCompare(a, b);
}
/** Comparator for sorting fellows */
export function comparator(a, b) {
return a.compare(b);
}
/** Verify an email */

@@ -143,6 +157,2 @@ export function verifyEmail(email) {

}
/** Comparator for sorting fellows in an array */
export function comparator(a, b) {
return a.compare(b);
}
/** A fellow with similarties to other people */

@@ -640,13 +650,3 @@ export default class Fellow {

compare(other) {
const a = this.name.toLowerCase();
const b = other.name.toLowerCase();
if (a === b) {
return 0;
}
else if (a < b) {
return -1;
}
else {
return 1;
}
return compare(this.name, other.name);
}

@@ -744,3 +744,3 @@ /**

* @param inputs The fellow or people to add
* @returns A de-duplicated array of fellow objects for the passed people
* @returns A de-duplicated sorted array of fellow objects for the passed people
*/

@@ -770,3 +770,3 @@ static add(...inputs) {

}
return Array.from(list.values());
return this.sort(Array.from(list.values()));
}

@@ -773,0 +773,0 @@ /** Create a new Fellow instance with the value, however if the value is already a fellow instance, then just return it */

// external
import { a, ma } from 'https://unpkg.com/@bevry/render@^1.2.0/edition-deno/index.ts'
/** Compare/comparator/comparison result */
export type Comparison = -1 | 0 | 1
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Collator/Collator
const { compare: intlCompare } = new Intl.Collator('en', {
numeric: true,
// sensitivity: 'base',
ignorePunctuation: true,
})
/** Comparator for sorting alphanumeric strings, with support for accents */
export function compare(a: string, b: string): Comparison {
return intlCompare(a, b) as any
}
/** Comparator for sorting fellows */
export function comparator(a: Fellow, b: Fellow): Comparison {
return a.compare(b)
}
/** Verify an email */

@@ -197,7 +217,2 @@ export function verifyEmail(email: string): boolean {

/** Comparator for sorting fellows in an array */
export function comparator(a: Fellow, b: Fellow) {
return a.compare(b)
}
/** A fellow with similarties to other people */

@@ -718,12 +733,4 @@ export default class Fellow {

/** Compare to another fellow for sorting. */
compare(other: Fellow): -1 | 0 | 1 {
const a = this.name.toLowerCase()
const b = other.name.toLowerCase()
if (a === b) {
return 0
} else if (a < b) {
return -1
} else {
return 1
}
compare(other: Fellow): Comparison {
return compare(this.name, other.name)
}

@@ -826,3 +833,3 @@

* @param inputs The fellow or people to add
* @returns A de-duplicated array of fellow objects for the passed people
* @returns A de-duplicated sorted array of fellow objects for the passed people
*/

@@ -849,3 +856,3 @@ static add(...inputs: any[]): Array<Fellow> {

}
return Array.from(list.values())
return this.sort(Array.from(list.values()))
}

@@ -852,0 +859,0 @@

// external
import { a, ma } from '@bevry/render';
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Collator/Collator
const { compare: intlCompare } = new Intl.Collator('en', {
numeric: true,
// sensitivity: 'base',
ignorePunctuation: true,
});
/** Comparator for sorting alphanumeric strings, with support for accents */
export function compare(a, b) {
return intlCompare(a, b);
}
/** Comparator for sorting fellows */
export function comparator(a, b) {
return a.compare(b);
}
/** Verify an email */

@@ -143,6 +157,2 @@ export function verifyEmail(email) {

}
/** Comparator for sorting fellows in an array */
export function comparator(a, b) {
return a.compare(b);
}
/** A fellow with similarties to other people */

@@ -655,13 +665,3 @@ class Fellow {

compare(other) {
const a = this.name.toLowerCase();
const b = other.name.toLowerCase();
if (a === b) {
return 0;
}
else if (a < b) {
return -1;
}
else {
return 1;
}
return compare(this.name, other.name);
}

@@ -759,3 +759,3 @@ /**

* @param inputs The fellow or people to add
* @returns A de-duplicated array of fellow objects for the passed people
* @returns A de-duplicated sorted array of fellow objects for the passed people
*/

@@ -785,3 +785,3 @@ static add(...inputs) {

}
return Array.from(list.values());
return this.sort(Array.from(list.values()));
}

@@ -788,0 +788,0 @@ /** Create a new Fellow instance with the value, however if the value is already a fellow instance, then just return it */

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.comparator = exports.Format = exports.fetchNotOk = exports.fetchOk = exports.verifyEmail = void 0;
exports.Format = exports.fetchNotOk = exports.fetchOk = exports.verifyEmail = exports.comparator = exports.compare = void 0;
// external
const render_1 = require("@bevry/render");
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Collator/Collator
const { compare: intlCompare } = new Intl.Collator('en', {
numeric: true,
// sensitivity: 'base',
ignorePunctuation: true,
});
/** Comparator for sorting alphanumeric strings, with support for accents */
function compare(a, b) {
return intlCompare(a, b);
}
exports.compare = compare;
/** Comparator for sorting fellows */
function comparator(a, b) {
return a.compare(b);
}
exports.comparator = comparator;
/** Verify an email */

@@ -149,7 +165,2 @@ function verifyEmail(email) {

}
/** Comparator for sorting fellows in an array */
function comparator(a, b) {
return a.compare(b);
}
exports.comparator = comparator;
/** A fellow with similarties to other people */

@@ -662,13 +673,3 @@ class Fellow {

compare(other) {
const a = this.name.toLowerCase();
const b = other.name.toLowerCase();
if (a === b) {
return 0;
}
else if (a < b) {
return -1;
}
else {
return 1;
}
return compare(this.name, other.name);
}

@@ -766,3 +767,3 @@ /**

* @param inputs The fellow or people to add
* @returns A de-duplicated array of fellow objects for the passed people
* @returns A de-duplicated sorted array of fellow objects for the passed people
*/

@@ -792,3 +793,3 @@ static add(...inputs) {

}
return Array.from(list.values());
return this.sort(Array.from(list.values()));
}

@@ -795,0 +796,0 @@ /** Create a new Fellow instance with the value, however if the value is already a fellow instance, then just return it */

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.comparator = exports.Format = exports.fetchNotOk = exports.fetchOk = exports.verifyEmail = void 0;
exports.Format = exports.fetchNotOk = exports.fetchOk = exports.verifyEmail = exports.comparator = exports.compare = void 0;
// external
const render_1 = require("@bevry/render");
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Collator/Collator
const { compare: intlCompare } = new Intl.Collator('en', {
numeric: true,
// sensitivity: 'base',
ignorePunctuation: true,
});
/** Comparator for sorting alphanumeric strings, with support for accents */
function compare(a, b) {
return intlCompare(a, b);
}
exports.compare = compare;
/** Comparator for sorting fellows */
function comparator(a, b) {
return a.compare(b);
}
exports.comparator = comparator;
/** Verify an email */

@@ -149,7 +165,2 @@ function verifyEmail(email) {

}
/** Comparator for sorting fellows in an array */
function comparator(a, b) {
return a.compare(b);
}
exports.comparator = comparator;
/** A fellow with similarties to other people */

@@ -647,13 +658,3 @@ class Fellow {

compare(other) {
const a = this.name.toLowerCase();
const b = other.name.toLowerCase();
if (a === b) {
return 0;
}
else if (a < b) {
return -1;
}
else {
return 1;
}
return compare(this.name, other.name);
}

@@ -751,3 +752,3 @@ /**

* @param inputs The fellow or people to add
* @returns A de-duplicated array of fellow objects for the passed people
* @returns A de-duplicated sorted array of fellow objects for the passed people
*/

@@ -777,3 +778,3 @@ static add(...inputs) {

}
return Array.from(list.values());
return this.sort(Array.from(list.values()));
}

@@ -780,0 +781,0 @@ /** Create a new Fellow instance with the value, however if the value is already a fellow instance, then just return it */

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

/** Compare/comparator/comparison result */
export type Comparison = -1 | 0 | 1;
/** Comparator for sorting alphanumeric strings, with support for accents */
export declare function compare(a: string, b: string): Comparison;
/** Comparator for sorting fellows */
export declare function comparator(a: Fellow, b: Fellow): Comparison;
/** Verify an email */

@@ -43,4 +49,2 @@ export declare function verifyEmail(email: string): boolean;

}
/** Comparator for sorting fellows in an array */
export declare function comparator(a: Fellow, b: Fellow): 0 | 1 | -1;
/** A fellow with similarties to other people */

@@ -191,3 +195,3 @@ export default class Fellow {

/** Compare to another fellow for sorting. */
compare(other: Fellow): -1 | 0 | 1;
compare(other: Fellow): Comparison;
/**

@@ -225,3 +229,3 @@ * Compare to another fellow for equivalency.

* @param inputs The fellow or people to add
* @returns A de-duplicated array of fellow objects for the passed people
* @returns A de-duplicated sorted array of fellow objects for the passed people
*/

@@ -228,0 +232,0 @@ static add(...inputs: any[]): Array<Fellow>;

{
"name": "fellow",
"version": "7.3.0",
"version": "7.4.0-next.1704671471.45861038d412e1c13120a7ee6bd06be40406bfc1",
"license": "Artistic-2.0",

@@ -5,0 +5,0 @@ "description": "Fellow is a package for creating people that can be unified by their shared values via a singleton list on the class",

@@ -51,3 +51,3 @@ <!-- TITLE/ -->

``` typescript
import pkg from 'https://unpkg.com/fellow@^7.3.0/edition-deno/index.ts'
import pkg from 'https://unpkg.com/fellow@^7.4.0/edition-deno/index.ts'
```

@@ -58,3 +58,3 @@ ### [Skypack](https://www.skypack.dev "Skypack is a JavaScript Delivery Network for modern web apps")

<script type="module">
import pkg from '//cdn.skypack.dev/fellow@^7.3.0'
import pkg from '//cdn.skypack.dev/fellow@^7.4.0'
</script>

@@ -66,3 +66,3 @@ ```

<script type="module">
import pkg from '//unpkg.com/fellow@^7.3.0'
import pkg from '//unpkg.com/fellow@^7.4.0'
</script>

@@ -74,3 +74,3 @@ ```

<script type="module">
import pkg from '//dev.jspm.io/fellow@7.3.0'
import pkg from '//dev.jspm.io/fellow@7.4.0'
</script>

@@ -77,0 +77,0 @@ ```

// external
import { a, ma } from '@bevry/render'
/** Compare/comparator/comparison result */
export type Comparison = -1 | 0 | 1
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Collator/Collator
const { compare: intlCompare } = new Intl.Collator('en', {
numeric: true,
// sensitivity: 'base',
ignorePunctuation: true,
})
/** Comparator for sorting alphanumeric strings, with support for accents */
export function compare(a: string, b: string): Comparison {
return intlCompare(a, b) as any
}
/** Comparator for sorting fellows */
export function comparator(a: Fellow, b: Fellow): Comparison {
return a.compare(b)
}
/** Verify an email */

@@ -197,7 +217,2 @@ export function verifyEmail(email: string): boolean {

/** Comparator for sorting fellows in an array */
export function comparator(a: Fellow, b: Fellow) {
return a.compare(b)
}
/** A fellow with similarties to other people */

@@ -718,12 +733,4 @@ export default class Fellow {

/** Compare to another fellow for sorting. */
compare(other: Fellow): -1 | 0 | 1 {
const a = this.name.toLowerCase()
const b = other.name.toLowerCase()
if (a === b) {
return 0
} else if (a < b) {
return -1
} else {
return 1
}
compare(other: Fellow): Comparison {
return compare(this.name, other.name)
}

@@ -826,3 +833,3 @@

* @param inputs The fellow or people to add
* @returns A de-duplicated array of fellow objects for the passed people
* @returns A de-duplicated sorted array of fellow objects for the passed people
*/

@@ -849,3 +856,3 @@ static add(...inputs: any[]): Array<Fellow> {

}
return Array.from(list.values())
return this.sort(Array.from(list.values()))
}

@@ -852,0 +859,0 @@

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