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

instructure-canvas-api

Package Overview
Dependencies
Maintainers
7
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

instructure-canvas-api - npm Package Compare versions

Comparing version 2.0.2 to 2.0.4

33

lib/flow/api.js

@@ -1,1 +0,32 @@

var _apis=require('../apis/');var _apis2=_interopRequireDefault(_apis);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}
//
// Copyright (C) 2016-present Instructure, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
/* @flow */
import canvas from '../apis/'
export type ApiResponse<T> = AxiosResponse<T> & {
next: ?(() => Promise<ApiResponse<T>>),
}
export type ApiError = {
status: number,
data: {
errors: { message: string }[],
},
}
export type CanvasApi = typeof canvas

@@ -1,1 +0,34 @@

Object.defineProperty(exports,"__esModule",{value:true});var _ref=global,afterAll=_ref.afterAll,afterEach=_ref.afterEach,beforeAll=_ref.beforeAll,beforeEach=_ref.beforeEach,describe=_ref.describe,test=_ref.test,it=_ref.it,expect=_ref.expect;exports.afterAll=afterAll;exports.afterEach=afterEach;exports.beforeAll=beforeAll;exports.beforeEach=beforeEach;exports.describe=describe;exports.test=test;exports.it=it;exports.expect=expect;
//
// Copyright (C) 2016-present Instructure, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// @flow
declare var require: typeof require & { requireActual: (string) => any }
declare var jest: any
declare var fail: Function
export const {
afterAll,
afterEach,
beforeAll,
beforeEach,
describe,
test,
it,
expect,
} = (global: any)

6

package.json
{
"name": "instructure-canvas-api",
"version": "2.0.2",
"version": "2.0.4",
"description": "API module to interact with canvas",
"main": "lib/index.js",
"scripts": {
"prepublishOnly": "gulp prepublish",
"test": "jest",

@@ -24,6 +25,5 @@ "flow": "flow check --show-all-errors",

"jest": "^20.0.4",
"merge-stream": "^1.0.1",
"gulp-json-editor": "^2.2.1"
"merge-stream": "^1.0.1"
},
"license": "Apache-2.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