![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
node wrapper around tDoc REST-ful APIs
All the methods have a single object parameter, used to have optional parameters.
upload
Upload a document.
Arguments
ready
is false), either:
file
: path of the file to be uploadeddata
: a Buffer
or binary
string with raw datamimetype
: the content media type (defaults to application/pdf
)doctype
: docType to upload the document intoperiod
: fiscal period the document refers to; use current year for documents that don't have such conceptmeta
: all the metadata to associate to the document (optional if ready
is false)ready
: if the document is ready for preservation or still incomplete (defaults to true
)company
: if the user has access to more than one company, use this optional field to specify which one the doctype
refers toalias
& pin
: specify those fields when you need to apply a digital signature to the documentoverwrite
: the document identifier of a (not yet preserved) document to overwrite (optional)user
: (optional) the user the upload is made on the behalf of (to be used if and only if the authentication user is root)callback(err, data)
: err
in case of error or data
will contain full document metadataupdate
Update a document.
Arguments
id
: the identifier of the document to updateready
is false), either:
file
: path of the file to be uploadeddata
: a Buffer
or binary
string with raw datamimetype
: the content media type (defaults to application/pdf
)meta
: all the metadata to associate to the document (optional if ready
is false)ready
: if the document is ready for preservation or still incomplete (defaults to true
)company
: if the user has access to more than one company, use this optional field to specify which one the doctype
refers toalias
& pin
: specify those fields when you need to apply a digital signature to the documentoverwrite
: the document identifier of a (not yet preserved) document to overwrite (optional)user
: (optional) the user the upload is made on the behalf of (to be used if and only if the authentication user is root)callback(err, data)
: err
in case of error or data
will contain full document metadatadocument
Retrieves a Buffer with the content of a document.
Arguments
id
: the identifier of the documentuser
: (optional) the user the upload is made on the behalf of (to be used if and only if the authentication user is root)callback(err, data)
: err
in case of error or data
will contain full document metadatadocumentMeta
Retrieves the full metadata of a document.
Arguments
id
: the identifier of the documentuser
: (optional) the user the upload is made on the behalf of (to be used if and only if the authentication user is root)callback(err, data)
: err
in case of error or data
will contain full document metadatasearch
Search for documents matching some metadata.
Arguments
doctype
: docType to searchperiod
: (optional) fiscal period to searchmeta
: any metadata to search foruser
: (optional) the user the upload is made on the behalf of (to be used if and only if the authentication user is root)callback(err, data)
: err
in case of error or data
will be an array of document identifierssearchOne
Search for a single document matching some metadata. Returns full metadata of the searched document.
Warning: it is implemented using search
and documentMeta
and thus requires two round trip times.
Arguments
doctype
: docType to searchperiod
: (optional) fiscal period to searchmeta
: any metadata to search foruser
: (optional) the user the upload is made on the behalf of (to be used if and only if the authentication user is root)callback(err, data)
: err
in case of error or data
will contain full document metadataFAQs
Wrapper around tDoc REST-ful APIs
The npm package tdoc-api receives a total of 0 weekly downloads. As such, tdoc-api popularity was classified as not popular.
We found that tdoc-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.