Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@omnicar/sam-types
Advanced tools
Typescript interfaces for all types used to communicate between SAM client(s) and the SAM API
SAM types is used to collect and share all interfaces (types) that one or more repositories have in common. To facilitate and ensure that repositories use the same types when communicating with each other. In most cases, if not all, this is between SAM-api and one or more of the frontend clients like the SAM-admin.
TODO: Fill this out
We use standard semantic versioning
The project only has one dependency: Typescript
This is to have tsc
available.
To compile the index.d.ts
file and the index.js
file, run npm run tsc
(or yarn tsc
). This cleans all existing .js
files and updates the index.d.ts
file and the index.js
file.
Write your interface or type like you normally would. In order to export it, you need to add it to the index.ts
file which holds all exported interfaces, types, and enums. The enums (for now) need to be put directly in the index.ts
file. To fix this we need to setup some Webpack configuration etc.
To use the types locally in an application, add the line below as a dependency in your package.json
file:
"sam-types": "file:../SAM-types"
The path is the relative path to the SAM-types project.
To use the types locally you can use yarn link
. See docs here.
cd
to the SAM-types folder and type: yarn link
Then cd
to your application and type yarn link "sam-types"
. Now your application uses your local SAM-types project (using a symlink). To unlink, type yarn unlink "sam-types"
This means that you do not have to change anything in your package.json
file.
To use SAM-types in a project, add the line below as a dependency in your package.json
file:
"sam-types": "OmniCar/SAM-types#0.0.1"
If you need to target something other than a specific release, consider targeting a branch or a commit as shown below:
"sam-types": "OmniCar/SAM-types#4727d357ea"
"sam-types": "OmniCar/SAM-types#feature\/branch"
master
compared to a release (for example version 0.0.1
) by typing: git diff tags/0.0.1 master
If you have installed the hub cli (see link above), you can create a new release with the below command. Please note that it defaults to targeting the main (master
) branch unless you use the -t
option (more options here)
git release create -o -m "Release 0.0.2" "0.0.2"
If you did not set up the alias for git = hub
you should write hub
instead of git
in the command above.
FAQs
Typescript interfaces for all types used to communicate between SAM client(s) and the SAM API
The npm package @omnicar/sam-types receives a total of 0 weekly downloads. As such, @omnicar/sam-types popularity was classified as not popular.
We found that @omnicar/sam-types demonstrated a healthy version release cadence and project activity because the last version was released less than 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.