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

asana

Package Overview
Dependencies
Maintainers
3
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asana - npm Package Compare versions

Comparing version 0.18.6 to 0.18.14

.github/workflows/build.yml

2

bower.json
{
"name": "asana",
"main": "dist/asana.js",
"version": "0.15.1",
"version": "0.18.14",
"homepage": "https://github.com/Asana/node-asana",

@@ -6,0 +6,0 @@ "authors": [

var browserify = require('browserify');
var fs = require('fs');
var bump = require('gulp-bump');

@@ -54,4 +55,6 @@ var filter = require('gulp-filter');

if (err) { throw err; }
if (!/working directory clean/.exec(out)) {
throw new Error('Git working directory not clean, will not bump version');
if (!/nothing to commit/.exec(out)) {
throw new Error(
'Git working directory not clean, will not bump version'
);
}

@@ -70,5 +73,5 @@ });

*
* gulp bump-patch # makes v0.1.0 → v0.1.1
* gulp bump-feature # makes v0.1.1 → v0.2.0
* gulp bump-release # makes v0.2.1 → v1.0.0
* gulp bump-patch # makes v0.1.0 → v0.1.1
* gulp bump-minor # makes v0.1.1 → v0.2.0
* gulp bump-major # makes v0.2.1 → v1.0.0
*

@@ -79,21 +82,75 @@ * To bump the version numbers accordingly after you did a patch,

function bumpVersion(importance) {
return gulp.src(['./package.json', './bower.json'])
.pipe(bump({type: importance}))
.pipe(gulp.dest('./'))
.pipe(git.commit('bump package version'))
// Update VERSION file
function updateVersionFile(cb) {
fs.readFile('VERSION', 'utf-8', function (err, data) {
if (err) {
console.log(err);
}
var versionArray = data.split('.');
var major = versionArray[0];
var minor = versionArray[1];
var patch = versionArray[2];
if (importance === 'major') {
major = (parseInt(major) + 1).toString();
}
if (importance === 'minor') {
minor = (parseInt(minor) + 1).toString();
}
if (importance === 'patch') {
patch = (parseInt(patch) + 1).toString();
}
var updatedVersion = [major, minor, patch].join('.');
fs.writeFile('VERSION', updatedVersion, function (err) {
if (err) {
console.log(err);
}
});
});
cb();
}
// Bump version in package.json and bower.json
function updateVersion() {
return gulp
.src(['./package.json', './bower.json'])
.pipe(bump({ type: importance }))
.pipe(gulp.dest('./'));
}
// Add, commit version files and tag commit with new version
function addCommitTagPush(cb) {
gulp
.src(['./package.json', './bower.json', './VERSION'])
.pipe(git.add())
.pipe(git.commit('Bump package version'))
.pipe(filter('package.json'))
.pipe(tagVersion());
cb();
}
// Update the version files in parallel and then commit the changes
return gulp.series(
gulp.parallel(updateVersionFile, updateVersion),
addCommitTagPush
)();
}
function bumpPatch() {
return bumpVersion('patch');
function bumpPatch(cb) {
bumpVersion('patch');
cb();
}
gulp.task('bump-patch', gulp.series('ensure-git-clean', bumpPatch));
function bumpFeature() {
return bumpVersion('minor');
function bumpMinor(cb) {
bumpVersion('minor');
cb();
}
gulp.task('bump-feature', gulp.series('ensure-git-clean', bumpFeature));
function bumpVersion() {
return bumpVersion('major');
gulp.task('bump-minor', gulp.series('ensure-git-clean', bumpMinor));
function bumpMajor(cb) {
bumpVersion('major');
cb();
}
gulp.task('bump-release', gulp.series('ensure-git-clean', bumpVersion));
gulp.task('bump-major', gulp.series('ensure-git-clean', bumpMajor));

@@ -123,3 +180,3 @@ /**

.pipe(mocha({
reporter: process.env.TRAVIS ? 'spec' : 'nyan'
reporter: 'nyan'
}))

@@ -126,0 +183,0 @@ .pipe(istanbul.writeReports({

@@ -100,3 +100,3 @@ var url = require('url');

url: this.asanaTokenUrl(options),
formData: {
form: {
'grant_type': 'authorization_code',

@@ -125,3 +125,3 @@ 'client_id': this.clientId,

url: this.asanaTokenUrl(options),
formData: {
form: {
'grant_type': 'refresh_token',

@@ -128,0 +128,0 @@ 'client_id': this.clientId,

@@ -295,2 +295,20 @@ /**

/**
* Create a project template from a project
* @param {String} projectGid: (required) Globally unique identifier for the project.
* @param {Object} data: Data for the request
* @param {Object} [dispatchOptions]: Options, if any, to pass the dispatcher for the request
* @return {Promise} The requested resource
*/
Projects.prototype.projectSaveAsTemplate = function(
projectGid,
data,
dispatchOptions
) {
var path = "/projects/{project_gid}/saveAsTemplate".replace("{project_gid}", projectGid);
return this.dispatchPost(path, data, dispatchOptions)
};
/**
* Remove a custom field from a project

@@ -297,0 +315,0 @@ * @param {String} projectGid: (required) Globally unique identifier for the project.

@@ -489,3 +489,2 @@ /**

- teamsAny {String}: Comma-separated list of team IDs
- followersAny {String}: Comma-separated list of user identifiers
- followersNot {String}: Comma-separated list of user identifiers

@@ -496,5 +495,3 @@ - createdByAny {String}: Comma-separated list of user identifiers

- assignedByNot {String}: Comma-separated list of user identifiers
- likedByAny {String}: Comma-separated list of user identifiers
- likedByNot {String}: Comma-separated list of user identifiers
- commentedOnByAny {String}: Comma-separated list of user identifiers
- commentedOnByNot {String}: Comma-separated list of user identifiers

@@ -501,0 +498,0 @@ - dueOnBefore {Date}: ISO 8601 date string

@@ -23,3 +23,3 @@ /**

* @param {Object} params: Parameters for the request
- resourceType {String}: (required) The type of values the typeahead should return. You can choose from one of the following: `custom_field`, `project`, `portfolio`, `tag`, `task`, and `user`. Note that unlike in the names of endpoints, the types listed here are in singular form (e.g. `task`). Using multiple types is not yet supported.
- resourceType {String}: (required) The type of values the typeahead should return. You can choose from one of the following: `custom_field`, `project`, `project_template`, `portfolio`, `tag`, `task`, and `user`. Note that unlike in the names of endpoints, the types listed here are in singular form (e.g. `task`). Using multiple types is not yet supported.
- type {String}: *Deprecated: new integrations should prefer the resource_type field.*

@@ -26,0 +26,0 @@ - query {String}: The string that will be used to search for relevant objects. If an empty string is passed in, the API will currently return an empty result set.

@@ -94,3 +94,21 @@ /**

/**
* Update a webhook
* @param {String} webhookGid: (required) Globally unique identifier for the webhook.
* @param {Object} data: Data for the request
* @param {Object} [dispatchOptions]: Options, if any, to pass the dispatcher for the request
* @return {Promise} The requested resource
*/
Webhooks.prototype.updateWebhook = function(
webhookGid,
data,
dispatchOptions
) {
var path = "/webhooks/{webhook_gid}".replace("{webhook_gid}", webhookGid);
return this.dispatchPut(path, data, dispatchOptions)
};
module.exports = Webhooks;
/* jshint ignore:end */
{
"name": "asana",
"version": "0.18.6",
"version": "0.18.14",
"description": "Official NodeJS and BrowserJS client for the Asana API",

@@ -5,0 +5,0 @@ "main": "index.js",

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

# Asana [![GitHub release][release-image]]() [![Build Status][travis-image]][travis-url] [![NPM Version][npm-image]][npm-url]
# Asana [![GitHub release][release-image]]() [![Build Status][github-actions-image]][github-actions-url] [![NPM Version][npm-image]][npm-url]

@@ -317,14 +317,30 @@ A JavaScript client (for both Node and browser) for the Asana API v1.0.

#### Automatic Deployment
1. Merge in the desired changes into the `master` branch and commit them.
2. Clone the repo; work on `master`.
3. Bump the package version to indicate the [semantic version](http://semver.org) change, using one of: `gulp bump-patch`, `gulp bump-feature`, or `gulp bump-release`
3. Bump the package version to indicate the [semantic version](http://semver.org) change, using one of: `gulp bump-patch`, `gulp bump-minor`, or `gulp bump-major`
(NOTE: If this is your first time running `gulp` please install `gulp` globally using `npm i -g gulp`)
4. Push changes to origin, including tags:
`git push origin master --tags`
`git push --tags origin master:master`
Travis CI will automatically build and deploy the tagged release.
#### Manual Deployment
1. Merge in the desired changes into the `master` branch and commit them.
2. Clone the repo, work on master.
3. Edit package version in `package.json`, `bower.json` and `VERSION` to indicate the [semantic version](http://semver.org/) change.
4. Commit the change
5. Tag the commit with `v` plus the same version number you set in the file.
`git tag v1.2.3`
6. Push changes to origin, including tags:
`git push --tags origin master:master`
GitHub Actions will automatically build and deploy the tagged release.
:reminder_ribbon: Make sure to edit the [new release](https://github.com/Asana/node-asana/releases) description on GitHub after it has been deployed. Please use bullet points to indicate notable changes since the last version.
[release-image]: https://img.shields.io/github/release/asana/node-asana.svg
[travis-url]: http://travis-ci.org/Asana/node-asana
[travis-image]: http://img.shields.io/travis/Asana/node-asana.svg?style=flat-square&branch=master
[github-actions-url]: https://github.com/Asana/node-asana/actions
[github-actions-image]: https://github.com/Asana/node-asana/workflows/Build/badge.svg

@@ -331,0 +347,0 @@ [npm-url]: https://www.npmjs.org/package/asana

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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