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

apidoc

Package Overview
Dependencies
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apidoc - npm Package Compare versions

Comparing version 0.23.0 to 0.24.0

template/vendor/prism.css

6

CHANGELOG.md
# apiDoc Changelog
#### 0.24.0
* Fix output when offline (#894) by @SecretAgentKen
* Increase require.js timeout (#889) by @NicolasCARPi
* Use Prism.js instead of deprecated prettify.js (#888) by @NicolasCARPi
#### 0.23.0

@@ -4,0 +10,0 @@

4

example/example.js

@@ -15,3 +15,3 @@ /**

*
* @apiExample {curl} Curl example
* @apiExample {bash} Curl example
* curl -H "Authorization: token 5f048fe" -i https://api.example.com/user/4711

@@ -96,3 +96,3 @@ * @apiExample {js} Javascript example

*
* @apiExample {curl} Curl example
* @apiExample {bash} Curl example
* curl -X DELETE -H "Authorization: token 5f048fe" -i https://api.example.com/user/4711

@@ -99,0 +99,0 @@ * @apiExample {js} Javascript example

{
"name": "apidoc",
"version": "0.23.0",
"version": "0.24.0",
"description": "RESTful web API Documentation Generator",

@@ -40,6 +40,6 @@ "author": "Peter Rottmann <rottmann@inveris.de>",

"handlebars": "^4.7.6",
"lodash": "^4.17.15",
"lodash": "^4.17.19",
"markdown-it": "^10.0.0",
"nodemon": "^2.0.3",
"winston": "^3.2.1"
"nodemon": "^2.0.4",
"winston": "^3.3.3"
},

@@ -51,3 +51,3 @@ "devDependencies": {

"jquery": "3.4.1",
"jshint": "^2.11.0",
"jshint": "^2.11.1",
"lodash-cli": "^4.17.5",

@@ -54,0 +54,0 @@ "mocha": "^6.2.3",

@@ -11,3 +11,3 @@ require.config({

pathToRegexp: './vendor/path-to-regexp/index',
prettify: './vendor/prettify/prettify',
prismjs: './vendor/prism',
semver: './vendor/semver.min',

@@ -34,8 +34,8 @@ utilsSampleRequest: './utils/send_sample_request',

},
prettify: {
exports: 'prettyPrint'
}
prismjs: {
exports: 'Prism'
},
},
urlArgs: 'v=' + (new Date()).getTime(),
waitSeconds: 15
waitSeconds: 150
});

@@ -50,3 +50,3 @@

'apiData',
'prettify',
'prismjs',
'utilsSampleRequest',

@@ -58,3 +58,3 @@ 'semver',

'list'
], function($, _, locale, Handlebars, apiProject, apiData, prettyPrint, sampleRequest, semver, WebFont) {
], function($, _, locale, Handlebars, apiProject, apiData, Prism, sampleRequest, semver, WebFont) {

@@ -65,4 +65,8 @@ // Load google web fonts.

// Only init after fonts are loaded.
init($, _, locale, Handlebars, apiProject, apiData, prettyPrint, sampleRequest, semver);
init($, _, locale, Handlebars, apiProject, apiData, Prism, sampleRequest, semver);
},
inactive: function() {
// Run init, even if loading fonts fails
init($, _, locale, Handlebars, apiProject, apiData, Prism, sampleRequest, semver);
},
google: {

@@ -74,3 +78,3 @@ families: ['Source Code Pro', 'Source Sans Pro:n4,n6,n7']

function init($, _, locale, Handlebars, apiProject, apiData, prettyPrint, sampleRequest, semver) {
function init($, _, locale, Handlebars, apiProject, apiData, Prism, sampleRequest, semver) {
var api = apiData.api;

@@ -532,2 +536,3 @@

sampleRequest.initDynamic();
Prism.highlightAll()
}

@@ -543,5 +548,2 @@ initDynamic();

// Pre- / Code-Format
prettyPrint();
//

@@ -915,2 +917,3 @@ // HTML-Template specific jQuery-Functions

}
Prism.highlightAll()
}

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

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