@riiid/santa-sdk-js
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -19,2 +19,3 @@ const nock = require('nock'); | ||
const snsToken = 'snsToken'; | ||
const clientCode = 'clientCode'; | ||
const BASE_URL = 'https://dev.authentication.riiid.co'; | ||
@@ -257,5 +258,5 @@ | ||
nock(BASE_URL) | ||
.post(PATH_ANONYMOUS, {clientCode: token}) | ||
.post(PATH_ANONYMOUS, {clientCode}) | ||
.reply(500); | ||
return req.createAnonymous(clientCode = token) | ||
return req.createAnonymous(clientCode) | ||
.catch(err => { | ||
@@ -268,5 +269,5 @@ expect(err.message).toMatchSnapshot(); | ||
nock(BASE_URL) | ||
.post(PATH_ANONYMOUS, {clientCode: token}) | ||
.post(PATH_ANONYMOUS, {clientCode}) | ||
.reply(500); | ||
return req.createAnonymous$(clientCode = token).subscribe(null, err => { | ||
return req.createAnonymous$(clientCode).subscribe(null, err => { | ||
expect(err.message).toMatchSnapshot(); | ||
@@ -273,0 +274,0 @@ done(); |
{ | ||
"name": "@riiid/santa-sdk-js", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Santa SDK for Javascript", | ||
"main": "./lib/index.js", | ||
"repository": "https://github.com/riiid/santa-sdk-js.git", | ||
"author": "", | ||
"license": "MIT", | ||
"author": "Riiid", | ||
"license": "Apache-2.0", | ||
"scripts": { | ||
"build": "npx babel lib --out-dir dist", | ||
"test": "jest --coverage", | ||
"test:watch": "jest --coverage --watch --notify" | ||
"test:watch": "jest --coverage --watch --notify", | ||
"deploy": "yarn build && np" | ||
}, | ||
@@ -23,2 +25,6 @@ "engines": { | ||
"devDependencies": { | ||
"@babel/cli": "^7.4.3", | ||
"@babel/core": "^7.4.3", | ||
"@babel/node": "^7.2.2", | ||
"@babel/preset-env": "^7.4.3", | ||
"babel-eslint": "^10.0.1", | ||
@@ -29,3 +35,7 @@ "eslint": "^5.12.1", | ||
"nock": "^10.0.6" | ||
}, | ||
"np": { | ||
"yarn": false, | ||
"contents": "dist" | ||
} | ||
} |
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
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
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
50893
23
0
956
2
9