calendar-link
Advanced tools
Comparing version 0.9.0 to 1.0.0
128
package.json
{ | ||
"name": "calendar-link", | ||
"version": "0.9.0", | ||
"description": "", | ||
"keywords": [], | ||
"main": "dist/calendar-link.umd.js", | ||
"module": "dist/calendar-link.es5.js", | ||
"typings": "dist/types/calendar-link.d.ts", | ||
"version": "1.0.0", | ||
"main": "dist/index.js", | ||
"files": [ | ||
"dist" | ||
], | ||
"types": "dist/index.d.ts", | ||
"repository": "git@github.com:AnandChowdhary/calendar-link", | ||
"author": "Anand Chowdhary <anandchowdhary@gmail.com>", | ||
"repository": { | ||
"type": "git", | ||
"url": "" | ||
}, | ||
"license": "MIT", | ||
"engines": { | ||
"node": ">=6.0.0" | ||
}, | ||
"scripts": { | ||
"lint": "tslint --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'", | ||
"prebuild": "rimraf dist", | ||
"build": "tsc --module UMD && rollup -c rollup.config.ts && typedoc --out docs --target es6 --theme minimal --mode file src", | ||
"start": "rollup -c rollup.config.ts -w", | ||
"test": "jest --coverage", | ||
"test:watch": "jest --coverage --watch", | ||
"test:prod": "npm run lint && npm run test -- --no-cache", | ||
"deploy-docs": "ts-node tools/gh-pages-publish", | ||
"report-coverage": "cat ./coverage/lcov.info | coveralls", | ||
"commit": "git-cz", | ||
"semantic-release": "semantic-release", | ||
"semantic-release-prepare": "ts-node tools/semantic-release-prepare", | ||
"precommit": "lint-staged", | ||
"travis-deploy-once": "travis-deploy-once" | ||
"build": "tsc", | ||
"build-test": "yarn build && yarn test-without-coverage", | ||
"start": "concurrently 'yarn prettier-watch' 'yarn watch'", | ||
"watch": "onchange '*.{ts,json}' -- yarn test-without-coverage", | ||
"prettier-watch": "onchange '**/*.{ts,json}' -- prettier --write {{changed}}", | ||
"test": "jest --coverage --coverageReporters=text-lcov | coveralls", | ||
"test-without-reporting": "jest --coverage", | ||
"test-without-coverage": "jest" | ||
}, | ||
"lint-staged": { | ||
"{src,test}/**/*.ts": [ | ||
"prettier --write", | ||
"git add" | ||
] | ||
"devDependencies": { | ||
"@types/jest": "^24.0.11", | ||
"concurrently": "^4.1.0", | ||
"coveralls": "^3.0.3", | ||
"jest": "^24.5.0", | ||
"onchange": "^5.2.0", | ||
"prettier": "^1.16.4", | ||
"ts-jest": "^24.0.0", | ||
"typescript": "^3.3.4000" | ||
}, | ||
"config": { | ||
"commitizen": { | ||
"path": "node_modules/cz-conventional-changelog" | ||
} | ||
}, | ||
"jest": { | ||
"roots": [ | ||
"<rootDir>" | ||
], | ||
"transform": { | ||
".(ts|tsx)": "ts-jest" | ||
"^.+\\.tsx?$": "ts-jest" | ||
}, | ||
"testEnvironment": "node", | ||
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$", | ||
"moduleFileExtensions": [ | ||
@@ -61,67 +46,8 @@ "ts", | ||
"node" | ||
], | ||
"coveragePathIgnorePatterns": [ | ||
"/node_modules/", | ||
"/test/" | ||
], | ||
"coverageThreshold": { | ||
"global": { | ||
"branches": 90, | ||
"functions": 95, | ||
"lines": 95, | ||
"statements": 95 | ||
} | ||
}, | ||
"collectCoverageFrom": [ | ||
"src/*.{js,ts}" | ||
] | ||
}, | ||
"prettier": { | ||
"semi": false, | ||
"singleQuote": true | ||
}, | ||
"commitlint": { | ||
"extends": [ | ||
"@commitlint/config-conventional" | ||
] | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^7.1.2", | ||
"@commitlint/config-conventional": "^7.1.2", | ||
"@types/jest": "^23.3.2", | ||
"@types/node": "^10.11.0", | ||
"colors": "^1.3.2", | ||
"commitizen": "^3.0.0", | ||
"coveralls": "^3.0.2", | ||
"cross-env": "^5.2.0", | ||
"cz-conventional-changelog": "^2.1.0", | ||
"husky": "^1.0.1", | ||
"jest": "^23.6.0", | ||
"jest-config": "^23.6.0", | ||
"lint-staged": "^8.0.0", | ||
"lodash.camelcase": "^4.3.0", | ||
"prettier": "^1.14.3", | ||
"prompt": "^1.0.0", | ||
"replace-in-file": "^3.4.2", | ||
"rimraf": "^2.6.2", | ||
"rollup": "^1.1.0", | ||
"rollup-plugin-commonjs": "^9.1.8", | ||
"rollup-plugin-json": "^3.1.0", | ||
"rollup-plugin-node-resolve": "^4.0.0", | ||
"rollup-plugin-sourcemaps": "^0.4.2", | ||
"rollup-plugin-typescript2": "^0.19.0", | ||
"semantic-release": "^15.9.16", | ||
"travis-deploy-once": "^5.0.9", | ||
"ts-jest": "^23.10.2", | ||
"ts-node": "^7.0.1", | ||
"tslint": "^5.11.0", | ||
"tslint-config-prettier": "^1.15.0", | ||
"tslint-config-standard": "^8.0.1", | ||
"typedoc": "^0.14.1", | ||
"typescript": "^3.0.3" | ||
}, | ||
"dependencies": { | ||
"dayjs": "^1.8.0", | ||
"object-to-querystring": "^1.0.8" | ||
"dayjs": "^1.8.11", | ||
"query-string": "^6.4.2" | ||
} | ||
} |
# Calendar Link | ||
[![Greenkeeper badge](https://badges.greenkeeper.io/AnandChowdhary/calendar-link.svg)](https://greenkeeper.io/) | ||
[![Travis](https://img.shields.io/travis/AnandChowdhary/calendar-link.svg)](https://travis-ci.org/AnandChowdhary/calendar-link) | ||
@@ -17,16 +16,16 @@ [![Coverage Status](https://coveralls.io/repos/github/AnandChowdhary/calendar-link/badge.svg?branch=master)](https://coveralls.io/github/AnandChowdhary/calendar-link?branch=master) | ||
```js | ||
import calendarLink from 'calendar-link' | ||
import { google, outlook, yahoo } from "calendar-link" | ||
// Set event as an object | ||
const event = { | ||
title: 'My birthday party', | ||
description: 'Be there!', | ||
starts: '2019-12-29 18:00:00 +0100', | ||
duration: [3, 'hours'] | ||
title: "My birthday party", | ||
description: "Be there!", | ||
starts: "2019-12-29 18:00:00 +0100", | ||
duration: [3, "hour"] | ||
}; | ||
// Then fetch the link | ||
calendarLink.google(event); // https://calendar.google.com/calendar/render... | ||
calendarLink.outook(event); // https://outlook.live.com/owa/... | ||
calendarLink.yahoo(event); // https://calendar.yahoo.com/?v=60&title=... | ||
google(event); // https://calendar.google.com/calendar/render... | ||
outook(event); // https://outlook.live.com/owa/... | ||
yahoo(event); // https://calendar.yahoo.com/?v=60&title=... | ||
``` | ||
@@ -33,0 +32,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
8
1
5347
6
6
57
2
+ Addedquery-string@^6.4.2
+ Addeddecode-uri-component@0.2.2(transitive)
+ Addedfilter-obj@1.1.0(transitive)
+ Addedquery-string@6.14.1(transitive)
+ Addedsplit-on-first@1.1.0(transitive)
+ Addedstrict-uri-encode@2.0.0(transitive)
- Removedobject-to-querystring@^1.0.8
- Removedobject-to-querystring@1.0.8(transitive)
Updateddayjs@^1.8.11