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

astrocite-core

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

astrocite-core - npm Package Compare versions

Comparing version 0.8.5 to 0.11.0

LICENSE

4

lib/dates.d.ts

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

import { CSL } from './CSL';
export default function (input: string | number): CSL.DateType;
import { Date } from 'csl-json';
export default function (input: string | number): Date;
"use strict";
var __assign = (this && this.__assign) || Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};

@@ -45,4 +48,6 @@ var __read = (this && this.__read) || function (o, n) {

var _a = __read(matches, 5), year = _a[1], month = _a[2], day = _a[3], season = _a[4];
return __assign({ 'date-parts': [__spread([year], (month ? [month] : []), (day ? [day] : []))] }, season ? { season: seasons.get(season.toLowerCase()) } : {});
return __assign({ 'date-parts': [
__spread([year], (month ? [month] : []), (day ? [day] : [])),
] }, (season ? { season: seasons.get(season.toLowerCase()) } : {}));
}
exports.default = default_1;

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

export { CSL } from './CSL';
export { default as parseName } from './names';
export { default as parseDate } from './dates';

@@ -1,3 +0,3 @@

import { CSL } from './CSL';
export declare function parseNameParticles(input: string): Partial<CSL.Person>;
export default function (name: string): CSL.Person;
import { Person } from 'csl-json';
export declare function parseNameParticles(input: string): Partial<Person>;
export default function (name: string): Person;
"use strict";
var __assign = (this && this.__assign) || Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};

@@ -50,2 +53,3 @@ var __read = (this && this.__read) || function (o, n) {

function default_1(name) {
var _a, _b, _c;
var FIRST_VON_LAST = /([A-Z][a-zA-Z-]+ )?([a-z][a-zA-Z-]+ .+? [a-z][a-zA-Z-]+ )?([A-Z].+)/;

@@ -82,5 +86,9 @@ var VON_LAST_FIRST = /(.+ [a-z][a-zA-Z-]+ )?(.+), (.+)/;

}
return __assign({}, last ? { family: last.trim() } : {}, first ? { given: first.trim() } : {}, suffix ? { suffix: suffix.trim() } : {}, von ? parseNameParticles(von.trim()) : {}, literal ? { literal: literal } : {});
var _a, _b, _c;
if (literal) {
return {
literal: literal,
};
}
return __assign({ family: last.trim() }, (first ? { given: first.trim() } : {}), (suffix ? { suffix: suffix.trim() } : {}), (von ? parseNameParticles(von.trim()) : {}));
}
exports.default = default_1;
{
"name": "astrocite-core",
"version": "0.8.5",
"version": "0.11.0",
"description": "Shared utility functions for the astrocite package library",

@@ -16,5 +16,6 @@ "license": "MIT",

},
"devDependencies": {
"typescript": "^2.5.2"
}
"dependencies": {
"csl-json": "^0.1.0"
},
"gitHead": "7d11668c9b5fa9e54a234c1232aae7f9a2c35c09"
}
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